| Index: Source/devtools/front_end/sdk/TimelineManager.js
|
| diff --git a/Source/devtools/front_end/sdk/TimelineManager.js b/Source/devtools/front_end/sdk/TimelineManager.js
|
| index 3baa281ff099a9d32fcc7b4f0ac015a3ed69f348..8500f4ebdd506f900055c23073909218b5bf9736 100644
|
| --- a/Source/devtools/front_end/sdk/TimelineManager.js
|
| +++ b/Source/devtools/front_end/sdk/TimelineManager.js
|
| @@ -69,7 +69,7 @@
|
| start: function(maxCallStackDepth, liveEvents, includeCounters, includeGPUEvents, callback)
|
| {
|
| this._enablementCount++;
|
| - WebInspector.profilingLock.acquire();
|
| + this.target().profilingLock.acquire();
|
| if (WebInspector.experimentsSettings.timelineJSCPUProfile.isEnabled() && maxCallStackDepth) {
|
| this._configureCpuProfilerSamplingInterval();
|
| this._jsProfilerStarted = true;
|
| @@ -103,7 +103,7 @@
|
| if (!this._enablementCount)
|
| this.target().timelineAgent().stop(callbackBarrier.createCallback(timelineCallback));
|
|
|
| - callbackBarrier.callWhenDone(allDoneCallback);
|
| + callbackBarrier.callWhenDone(allDoneCallback.bind(this));
|
|
|
| /**
|
| * @param {?Protocol.Error} error
|
| @@ -123,9 +123,12 @@
|
| masterProfile = profile;
|
| }
|
|
|
| + /**
|
| + * @this {WebInspector.TimelineManager}
|
| + */
|
| function allDoneCallback()
|
| {
|
| - WebInspector.profilingLock.release();
|
| + this.target().profilingLock.release();
|
| callback(masterError, masterProfile);
|
| }
|
| },
|
|
|