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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js

Issue 2073343002: Timeline addTraceProvider API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timelineFlameChart.js Created 4 years, 6 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: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
index e3671badf0a6fe1682217e033be3a42a1026c9d0..b024c6d4a2a3d350be8c0ed9b632f9beb13d9f3b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -444,6 +444,9 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
for (var i = 0; i < compositorThreads.length; ++i)
this._appendSyncEvents(compositorThreads[i].events, WebInspector.UIString("Rasterizer Thread %d", i), this._headerLevel2);
}
+ var extensionEvents = this._model.extensionEvents();
+ this._appendSyncEvents(extensionEvents, "Extension", this._headerLevel2);
+
this._appendGPUEvents();
otherThreads.forEach(thread => this._appendThreadTimelineData(thread.name, thread.events, thread.asyncEventsByGroup));
@@ -823,6 +826,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
*/
_appendEvent: function(event, level)
{
+ //console.log(event);
caseq 2016/07/11 18:58:38 drop this.
var index = this._entryData.length;
this._entryData.push(event);
this._timelineData.entryLevels[index] = level;

Powered by Google App Engine
This is Rietveld 408576698