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

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

Issue 463033002: Do not coalesce events from different threads having same name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TimelineFlameChart.js
diff --git a/Source/devtools/front_end/timeline/TimelineFlameChart.js b/Source/devtools/front_end/timeline/TimelineFlameChart.js
index 755457591e08d541a3733ff15cc19d9108229221..e6df39f0cffdbb67d6bea20c6f6897f57ec6fb0b 100644
--- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -165,9 +165,9 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
this._appendFrameBars(this._frameModel.frames());
this._appendThreadTimelineData(WebInspector.UIString("Main Thread"), this._model.mainThreadEvents());
var threads = this._model.virtualThreads();
- for (var threadName in threads) {
- if (threadName !== WebInspector.TimelineModel.MainThreadName)
- this._appendThreadTimelineData(threadName, threads[threadName]);
+ for (var i = 0; i < threads.length; i++) {
+ var thread = threads[i];
+ this._appendThreadTimelineData(thread.name, thread.events);
}
return this._timelineData;
},
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TracingTimelineModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698