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

Side by Side Diff: Source/devtools/front_end/timeline/TracingTimelineUIUtils.js

Issue 320523004: Timeline: fill frames according to CPU time spent per event category (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 */ 6 */
7 WebInspector.TracingTimelineUIUtils = function() { } 7 WebInspector.TracingTimelineUIUtils = function() { }
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 if (!nextEvent.selfTime) 490 if (!nextEvent.selfTime)
491 continue; 491 continue;
492 if (i > index) 492 if (i > index)
493 hasChildren = true; 493 hasChildren = true;
494 var category = WebInspector.TracingTimelineUIUtils.styleForTraceEven t(nextEvent.name).category.name; 494 var category = WebInspector.TracingTimelineUIUtils.styleForTraceEven t(nextEvent.name).category.name;
495 aggregatedStats[category] = (aggregatedStats[category] || 0) + nextE vent.selfTime; 495 aggregatedStats[category] = (aggregatedStats[category] || 0) + nextE vent.selfTime;
496 } 496 }
497 } 497 }
498 return { aggregatedStats: aggregatedStats, hasChildren: hasChildren }; 498 return { aggregatedStats: aggregatedStats, hasChildren: hasChildren };
499 } 499 }
500
501
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TracingModel.js ('k') | Source/devtools/scripts/frontend_modules.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698