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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index a5dcaca774960d7c053e9c90099493d52746ac8f..754e1a27c705c7423327e98e7898096c85dfea89 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -1329,4 +1329,17 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
var node = this._entryNodes[entryIndex];
return this._colorGenerator.colorForID(node.functionName + ":" + node.url + ":" + node.lineNumber);;
},
+
+ /**
+ * @param {number} entryIndex
+ * @return {!{startTimeOffset: number, endTimeOffset: number}}
+ */
+ highlightTimeRange: function(entryIndex)
+ {
+ var startTimeOffset = this._timelineData.entryOffsets[entryIndex];
+ return {
+ startTimeOffset: startTimeOffset,
+ endTimeOffset: startTimeOffset + this._timelineData.entryTotalTimes[entryIndex]
+ };
+ },
}
« 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