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

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..185ae8b0d5bd5de310fac9b22ee16727c6f50563 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,7 @@ TimelineModel.TimelineProfileTree.TopDownRootNode = class extends TimelineModel.
*/
_grouppedTopNodes() {
var flatNodes = super.children();
+ this.selfTime -= Array.from(flatNodes.values()).reduce((acc, node) => acc + node.totalTime, 0);
pfeldman 2017/04/21 20:10:09 Are you implementing this? for (var node of flatN
alph 2017/04/21 20:19:59 Done.
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