| Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
|
| index 21905ea09899de53128b7f43962dd247f100d1a5..c71b4597a403e312f9669c6209ea963463e1a7b6 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js
|
| @@ -1018,8 +1018,11 @@ WebInspector.TimelineModel.prototype = {
|
| var cpuProfileEvent = events.peekLast();
|
| if (cpuProfileEvent && cpuProfileEvent.name === WebInspector.TimelineModel.RecordType.CpuProfile) {
|
| var cpuProfile = cpuProfileEvent.args["data"]["cpuProfile"];
|
| - if (cpuProfile)
|
| - jsSamples = WebInspector.TimelineJSProfileProcessor.generateTracingEventsFromCpuProfile(cpuProfile, thread);
|
| + if (cpuProfile) {
|
| + var jsProfileModel = new WebInspector.CPUProfileDataModel(cpuProfile);
|
| + WebInspector.TimelineJSProfileProcessor.buildLineLevelProfiles(jsProfileModel);
|
| + jsSamples = WebInspector.TimelineJSProfileProcessor.generateTracingEventsFromCpuProfile(jsProfileModel, thread);
|
| + }
|
| }
|
| }
|
|
|
|
|