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 6bbc0ee944924ab89fa91219f02d739d899f9b6f..d81c1e191f8dffa6568167439dfe5de39dddc3ea 100644 |
--- a/Source/devtools/front_end/sdk/TimelineManager.js |
+++ b/Source/devtools/front_end/sdk/TimelineManager.js |
@@ -67,7 +67,7 @@ WebInspector.TimelineManager.prototype = { |
start: function(maxCallStackDepth, liveEvents, includeCounters, includeGPUEvents, callback) |
{ |
this._enablementCount++; |
- WebInspector.profilingLock().acquire(); |
+ WebInspector.targetManager.suspendAllTargets(); |
if (this._enablementCount === 1) |
this.target().timelineAgent().start(maxCallStackDepth, true, liveEvents, includeCounters, includeGPUEvents, callback); |
else if (callback) |
@@ -93,7 +93,7 @@ WebInspector.TimelineManager.prototype = { |
*/ |
function allDoneCallback(error) |
{ |
- WebInspector.profilingLock().release(); |
+ WebInspector.targetManager.resumeAllTargets(); |
callback(error); |
} |
}, |