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

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

Issue 472263002: DevTools: 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
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/Locks.js
diff --git a/Source/devtools/front_end/sdk/Locks.js b/Source/devtools/front_end/sdk/Locks.js
new file mode 100644
index 0000000000000000000000000000000000000000..b8cea5244e8ea9a0d8ebfab65b89d6f79d410639
--- /dev/null
+++ b/Source/devtools/front_end/sdk/Locks.js
@@ -0,0 +1,13 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @return {!WebInspector.Lock}
+ */
+WebInspector.profilingLock = function()
+{
+ if (!WebInspector._profilingLock)
+ WebInspector._profilingLock = new WebInspector.Lock();
+ return WebInspector._profilingLock;
+}
« no previous file with comments | « Source/devtools/front_end/sdk/DebuggerModel.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698