Commit 51255e9f authored by yurys@chromium.org's avatar yurys@chromium.org

Fix aggregated stats caclulation for coalesced records

BUG=None
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/324403004

git-svn-id: svn://svn.chromium.org/blink/trunk@175958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d5c7988f
...@@ -340,7 +340,7 @@ WebInspector.TimelineView.prototype = { ...@@ -340,7 +340,7 @@ WebInspector.TimelineView.prototype = {
var aggregatedStats = {}; var aggregatedStats = {};
var presentationChildren = presentationRecord.presentationChildren(); var presentationChildren = presentationRecord.presentationChildren();
for (var i = 0; i < presentationChildren.length; ++i) for (var i = 0; i < presentationChildren.length; ++i)
WebInspector.TimelineUIUtils.aggregateTimeByCategory(aggregatedStats, presentationChildren[i].record().aggregatedStats); WebInspector.TimelineUIUtils.aggregateTimeByCategory(aggregatedStats, presentationChildren[i].record().aggregatedStats());
var idle = presentationRecord.record().endTime() - presentationRecord.record().startTime(); var idle = presentationRecord.record().endTime() - presentationRecord.record().startTime();
for (var category in aggregatedStats) for (var category in aggregatedStats)
idle -= aggregatedStats[category]; idle -= aggregatedStats[category];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment