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

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

Issue 2746333002: DevTools: move recurring flag into AsyncTask, control cancelation from embedder only. (Closed)
Patch Set: using _END now Created 3 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 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 e85439fe65bfda124757908bc255fff80bf977ed..ceb1b1e7d635003f66fd22ce04b90c226ec538f4 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChart.js
@@ -337,7 +337,8 @@ Timeline.TimelineFlameChartDataProvider = class {
var level = this._currentLevel + openEvents.length;
if (flowEventsEnabled)
this._appendFlowEvent(e, level);
- this._appendEvent(e, level);
+ if (e.phase !== SDK.TracingModel.Phase.FlowEnd)
+ this._appendEvent(e, level);
if (!isExtension && TimelineModel.TimelineModel.isMarkerEvent(e))
this._timelineData.entryTotalTimes[this._entryData.length] = undefined;
@@ -768,7 +769,6 @@ Timeline.TimelineFlameChartDataProvider = class {
this._flowEventIndexById.set(event.id, pushStartFlow(event));
break;
case SDK.TracingModel.Phase.FlowEnd:
- pushEndFlow(event, this._flowEventIndexById.get(event.id));
this._flowEventIndexById.delete(event.id);
break;
}

Powered by Google App Engine
This is Rietveld 408576698