Commit b16e70a4 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: follow up to r168484, do not add same parent twice into flame chart.

TBR=loislo

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168496 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3a8f44fd
......@@ -221,7 +221,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
this._appendRecord(childRecord, level + 1);
currentTime = childEndTime;
}
if (recordEndTime !== currentTime || record.children.length === 0)
if (recordIndex === -1 && recordEndTime !== currentTime || record.children.length === 0)
this._pushRecord(record, true, level, currentTime, recordEndTime);
this._maxStackDepth = Math.max(this._maxStackDepth, level + 2);
......
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