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

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

Issue 471393002: Revert of Make profiling lock global rather than per Target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/TracingModel.js
diff --git a/Source/devtools/front_end/sdk/TracingModel.js b/Source/devtools/front_end/sdk/TracingModel.js
index 98ffa8145d2ae7883a2e69c5d2103662d27791e9..283b5ba158a3955d1b4f74e99a2aaa18c11dfb34 100644
--- a/Source/devtools/front_end/sdk/TracingModel.js
+++ b/Source/devtools/front_end/sdk/TracingModel.js
@@ -101,7 +101,7 @@
*/
start: function(categoryFilter, options, callback)
{
- WebInspector.profilingLock.acquire();
+ this.target().profilingLock.acquire();
this.reset();
var bufferUsageReportingIntervalMs = 500;
TracingAgent.start(categoryFilter, options, bufferUsageReportingIntervalMs, callback);
@@ -113,7 +113,7 @@
if (!this._active)
return;
TracingAgent.end(this._onStop.bind(this));
- WebInspector.profilingLock.release();
+ this.target().profilingLock.release();
},
/**
« no previous file with comments | « Source/devtools/front_end/sdk/TimelineManager.js ('k') | Source/devtools/front_end/sdk/WorkerTargetManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698