Chromium Code Reviews| 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 3a47aec5c1f3dda19bb816c34635b982732b2f1b..3b9493dae70b7f519d44dff2078fbb17fa6c9b4f 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineModel.js |
| @@ -729,8 +729,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); |
|
caseq
2016/03/11 22:52:05
Can we take it out of model?
alph
2016/03/12 00:47:54
Done.
|
| + WebInspector.TimelineJSProfileProcessor.buildLineLevelProfiles(jsProfileModel); |
| + jsSamples = WebInspector.TimelineJSProfileProcessor.generateTracingEventsFromCpuProfile(jsProfileModel, thread); |
| + } |
| } |
| } |