| Index: Source/devtools/front_end/profiler/CanvasProfileView.js
|
| diff --git a/Source/devtools/front_end/profiler/CanvasProfileView.js b/Source/devtools/front_end/profiler/CanvasProfileView.js
|
| index 10986556a73f4492e2c06ad378b62d1550e72b82..6106da0b0d6c8e165f6bd22d98f571fb3da8296a 100644
|
| --- a/Source/devtools/front_end/profiler/CanvasProfileView.js
|
| +++ b/Source/devtools/front_end/profiler/CanvasProfileView.js
|
| @@ -726,22 +726,22 @@ WebInspector.CanvasProfileType.prototype = {
|
| _runSingleFrameCapturing: function()
|
| {
|
| var frameId = this._selectedFrameId();
|
| - WebInspector.profilingLock().acquire();
|
| + WebInspector.targetManager.suspendAllTargets();
|
| CanvasAgent.captureFrame(frameId, this._didStartCapturingFrame.bind(this, frameId));
|
| - WebInspector.profilingLock().release();
|
| + WebInspector.targetManager.resumeAllTargets();
|
| },
|
|
|
| _startFrameCapturing: function()
|
| {
|
| var frameId = this._selectedFrameId();
|
| - WebInspector.profilingLock().acquire();
|
| + WebInspector.targetManager.suspendAllTargets();
|
| CanvasAgent.startCapturing(frameId, this._didStartCapturingFrame.bind(this, frameId));
|
| },
|
|
|
| _stopFrameCapturing: function()
|
| {
|
| if (!this._lastProfileHeader) {
|
| - WebInspector.profilingLock().release();
|
| + WebInspector.targetManager.resumeAllTargets();
|
| return;
|
| }
|
| var profileHeader = this._lastProfileHeader;
|
| @@ -752,7 +752,7 @@ WebInspector.CanvasProfileType.prototype = {
|
| profileHeader._updateCapturingStatus();
|
| }
|
| CanvasAgent.stopCapturing(traceLogId, didStopCapturing);
|
| - WebInspector.profilingLock().release();
|
| + WebInspector.targetManager.resumeAllTargets();
|
| },
|
|
|
| /**
|
|
|