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

Unified Diff: runtime/vm/isolate.h

Issue 25909002: Sampling profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 128f7e22cafa3853a9ec070fc7c0843e1df44b35..9d98bad626182ded59b985ea8d1d2144d9d15daa 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -33,6 +33,7 @@ class HandleVisitor;
class Heap;
class ICData;
class Instance;
+class IsolateProfilerData;
class LongJump;
class MessageHandler;
class Mutex;
@@ -49,6 +50,7 @@ class RawInteger;
class RawError;
class RawFloat32x4;
class RawUint32x4;
+class SampleBuffer;
class Simulator;
class StackResource;
class StackZone;
@@ -59,6 +61,7 @@ class ObjectHistogram;
class ObjectIdRing;
+
siva 2013/10/28 05:19:21 extra blank line?
Cutch 2013/11/04 20:36:05 Done.
#define REUSABLE_HANDLE_LIST(V) \
V(Object) \
V(Array) \
@@ -366,6 +369,16 @@ class Isolate : public BaseIsolate {
return defer_finalization_count_ == 0;
}
+ Mutex* profiler_data_mutex() const { return profiler_data_mutex_; }
siva 2013/10/28 05:19:21 ASSERT(profiler_data_mutex_ != NULL);
Cutch 2013/11/04 20:36:05 Done.
+
+ void set_profiler_data(IsolateProfilerData* profiler_data) {
+ profiler_data_ = profiler_data;
+ }
+
+ IsolateProfilerData* profiler_data() {
+ return profiler_data_;
+ }
+
private:
Isolate();
@@ -421,6 +434,9 @@ class Isolate : public BaseIsolate {
// Ring buffer of objects assigned an id.
ObjectIdRing* object_id_ring_;
+ IsolateProfilerData* profiler_data_;
+ Mutex* profiler_data_mutex_;
+
// Reusable handles support.
#define REUSABLE_HANDLE_FIELDS(object) \
object* object##_handle_; \

Powered by Google App Engine
This is Rietveld 408576698