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(); |
}, |
/** |