| Index: Source/devtools/front_end/timeline/TimelineModel.js
|
| diff --git a/Source/devtools/front_end/timeline/TimelineModel.js b/Source/devtools/front_end/timeline/TimelineModel.js
|
| index c4563456c336ce8e71438d8adca4c90d073593b2..7d127c8fe7032fc85678017cc0eac7f7ef63d5bc 100644
|
| --- a/Source/devtools/front_end/timeline/TimelineModel.js
|
| +++ b/Source/devtools/front_end/timeline/TimelineModel.js
|
| @@ -645,14 +645,15 @@ WebInspector.TimelineModel.prototype = {
|
| _stopProfilingOnTarget: function(target)
|
| {
|
| /**
|
| - * @param {?{profile: !ProfilerAgent.CPUProfile}} value
|
| + * @param {?Protocol.Error} error
|
| + * @param {?ProfilerAgent.CPUProfile} profile
|
| * @return {?ProfilerAgent.CPUProfile}
|
| */
|
| - function extractProfile(value)
|
| + function extractProfile(error, profile)
|
| {
|
| - return value && value.profile;
|
| + return !error && profile ? profile : null;
|
| }
|
| - return target.profilerAgent().stop().then(extractProfile).then(this._addCpuProfile.bind(this, target.id()));
|
| + return target.profilerAgent().stop(extractProfile).then(this._addCpuProfile.bind(this, target.id()));
|
| },
|
|
|
| /**
|
|
|