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

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

Issue 475803002: Make profiling lock global rather than per Target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Extracted Lock.js 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 283b5ba158a3955d1b4f74e99a2aaa18c11dfb34..98ffa8145d2ae7883a2e69c5d2103662d27791e9 100644
--- a/Source/devtools/front_end/sdk/TracingModel.js
+++ b/Source/devtools/front_end/sdk/TracingModel.js
@@ -101,7 +101,7 @@ WebInspector.TracingModel.prototype = {
*/
start: function(categoryFilter, options, callback)
{
- this.target().profilingLock.acquire();
+ WebInspector.profilingLock.acquire();
this.reset();
var bufferUsageReportingIntervalMs = 500;
TracingAgent.start(categoryFilter, options, bufferUsageReportingIntervalMs, callback);
@@ -113,7 +113,7 @@ WebInspector.TracingModel.prototype = {
if (!this._active)
return;
TracingAgent.end(this._onStop.bind(this));
- this.target().profilingLock.release();
+ WebInspector.profilingLock.release();
},
/**

Powered by Google App Engine
This is Rietveld 408576698