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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js

Issue 2829923002: DevTools: Base aggregated tree view percentage on the busy time. (Closed)
Patch Set: . Created 3 years, 8 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 | « third_party/WebKit/Source/devtools/front_end/timeline/timelinePanel.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
index c08f3965af201d88faff04c101447a437d835ac8..edb01a96681352f93fb4c59019fdc0203849fe71 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineProfileTree.js
@@ -250,6 +250,8 @@ TimelineModel.TimelineProfileTree.TopDownRootNode = class extends TimelineModel.
*/
_grouppedTopNodes() {
var flatNodes = super.children();
+ for (var node of flatNodes.values())
+ this.selfTime -= node.totalTime;
if (!this._eventGroupIdCallback)
return flatNodes;
var groupNodes = new Map();
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/timelinePanel.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698