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

Unified Diff: runtime/vm/code_observers.h

Issue 23437046: Add support for dumping code in jitdump file format (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « no previous file | runtime/vm/code_observers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_observers.h
diff --git a/runtime/vm/code_observers.h b/runtime/vm/code_observers.h
index 82818159e3866369e92fd20272391b9aeedf4a47..2e857f77dd2a384c95e95f6fb9cf5dcf992fab94 100644
--- a/runtime/vm/code_observers.h
+++ b/runtime/vm/code_observers.h
@@ -10,6 +10,8 @@
namespace dart {
+class Mutex;
+
// Object observing code creation events. Used by external profilers and
// debuggers to map address ranges to function names.
class CodeObserver {
@@ -53,7 +55,12 @@ class CodeObservers : public AllStatic {
static void DeleteAll();
+ static Mutex* mutex() {
+ return mutex_;
+ }
+
private:
+ static Mutex* mutex_;
static intptr_t observers_length_;
static CodeObserver** observers_;
};
« no previous file with comments | « no previous file | runtime/vm/code_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698