Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1229)

Unified Diff: Source/devtools/front_end/sdk/TimelineManager.js

Issue 614323003: DevTools: enable by default disableAgentsWhenProfile experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unnecessary line was removed Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
},

Powered by Google App Engine
This is Rietveld 408576698