| Index: Source/devtools/front_end/timeline/TimelineFlameChart.js
|
| diff --git a/Source/devtools/front_end/timeline/TimelineFlameChart.js b/Source/devtools/front_end/timeline/TimelineFlameChart.js
|
| index a51c55e4b1d8c698d4b2a64ece4b1c89e7359862..3105d24e0a8f109980d4e557fd5fe462ac2350da 100644
|
| --- a/Source/devtools/front_end/timeline/TimelineFlameChart.js
|
| +++ b/Source/devtools/front_end/timeline/TimelineFlameChart.js
|
| @@ -146,7 +146,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
|
| var thread = record.thread();
|
| if (thread === "gpu")
|
| continue;
|
| - if (!thread) {
|
| + if (thread === WebInspector.TimelineModel.MainThreadName) {
|
| for (var j = 0; j < record.children().length; ++j)
|
| this._appendRecord(record.children()[j], 1);
|
| } else {
|
| @@ -159,8 +159,8 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
|
| }
|
| }
|
|
|
| - var cpuStackDepth = Math.max(4, this._entryThreadDepths[undefined]);
|
| - delete this._entryThreadDepths[undefined];
|
| + var cpuStackDepth = Math.max(4, this._entryThreadDepths[WebInspector.TimelineModel.MainThreadName]);
|
| + delete this._entryThreadDepths[WebInspector.TimelineModel.MainThreadName];
|
| this._maxStackDepth = cpuStackDepth;
|
|
|
| if (this._gpuThreadRecord) {
|
| @@ -181,7 +181,7 @@ WebInspector.TimelineFlameChartDataProvider.prototype = {
|
| level = 0;
|
| else if (record === this._gpuThreadRecord)
|
| level = cpuStackDepth + 2;
|
| - else if (record.thread())
|
| + else if (record.thread() !== WebInspector.TimelineModel.MainThreadName)
|
| level += threadBaselines[record.thread()];
|
| this._timelineData.entryLevels[i] = level;
|
| }
|
|
|