Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1214)

Side by Side Diff: Source/devtools/front_end/CPUProfileView.js

Issue 183763036: TimelineFlameChart: selectRecord implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: done Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/FlameChart.js » ('j') | Source/devtools/front_end/TimelineFlameChart.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698