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

Unified Diff: Source/devtools/front_end/profiler/CanvasProfileView.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/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();
},
/**

Powered by Google App Engine
This is Rietveld 408576698