OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 | 1322 |
1323 /** | 1323 /** |
1324 * @param {number} entryIndex | 1324 * @param {number} entryIndex |
1325 * @return {!string} | 1325 * @return {!string} |
1326 */ | 1326 */ |
1327 entryColor: function(entryIndex) | 1327 entryColor: function(entryIndex) |
1328 { | 1328 { |
1329 var node = this._entryNodes[entryIndex]; | 1329 var node = this._entryNodes[entryIndex]; |
1330 return this._colorGenerator.colorForID(node.functionName + ":" + node.ur
l + ":" + node.lineNumber);; | 1330 return this._colorGenerator.colorForID(node.functionName + ":" + node.ur
l + ":" + node.lineNumber);; |
1331 }, | 1331 }, |
| 1332 |
| 1333 /** |
| 1334 * @param {number} entryIndex |
| 1335 * @return {!{startTimeOffset: number, endTimeOffset: number}} |
| 1336 */ |
| 1337 highlightTimeRange: function(entryIndex) |
| 1338 { |
| 1339 var startTimeOffset = this._timelineData.entryOffsets[entryIndex]; |
| 1340 return { |
| 1341 startTimeOffset: startTimeOffset, |
| 1342 endTimeOffset: startTimeOffset + this._timelineData.entryTotalTimes[
entryIndex] |
| 1343 }; |
| 1344 }, |
1332 } | 1345 } |
OLD | NEW |