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