| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 * @param {number} entryIndex | 81 * @param {number} entryIndex |
| 82 * @return {?string} | 82 * @return {?string} |
| 83 */ | 83 */ |
| 84 entryTitle: function(entryIndex) | 84 entryTitle: function(entryIndex) |
| 85 { | 85 { |
| 86 var record = this._records[entryIndex]; | 86 var record = this._records[entryIndex]; |
| 87 if (record === this._cpuThreadRecord) | 87 if (record === this._cpuThreadRecord) |
| 88 return WebInspector.UIString("CPU"); | 88 return WebInspector.UIString("CPU"); |
| 89 else if (record === this._gpuThreadRecord) | 89 else if (record === this._gpuThreadRecord) |
| 90 return WebInspector.UIString("GPU"); | 90 return WebInspector.UIString("GPU"); |
| 91 var details = WebInspector.TimelineUIUtils.buildDetailsNode(record, this
._linkifier); | 91 var details = WebInspector.TimelineUIUtils.buildDetailsNode(record, this
._linkifier, this._model.loadedFromFile()); |
| 92 return details ? WebInspector.UIString("%s (%s)", record.title(), detail
s.textContent) : record.title(); | 92 return details ? WebInspector.UIString("%s (%s)", record.title(), detail
s.textContent) : record.title(); |
| 93 }, | 93 }, |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * @param {number} startTime | 96 * @param {number} startTime |
| 97 * @param {number} endTime | 97 * @param {number} endTime |
| 98 * @return {?Array.<number>} | 98 * @return {?Array.<number>} |
| 99 */ | 99 */ |
| 100 dividerOffsets: function(startTime, endTime) | 100 dividerOffsets: function(startTime, endTime) |
| 101 { | 101 { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 */ | 535 */ |
| 536 _onEntrySelected: function(event) | 536 _onEntrySelected: function(event) |
| 537 { | 537 { |
| 538 var entryIndex = event.data; | 538 var entryIndex = event.data; |
| 539 var record = this._dataProvider._records[entryIndex]; | 539 var record = this._dataProvider._records[entryIndex]; |
| 540 this._delegate.selectRecord(record); | 540 this._delegate.selectRecord(record); |
| 541 }, | 541 }, |
| 542 | 542 |
| 543 __proto__: WebInspector.VBox.prototype | 543 __proto__: WebInspector.VBox.prototype |
| 544 } | 544 } |
| OLD | NEW |