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

Unified Diff: runtime/vm/isolate.h

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 2998fd8b59fc84846f4d2009b8cde228b416ff66..ff66876b30f72dd48c17c2fe2e7c98393016f69e 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -470,6 +470,13 @@ class Isolate : public BaseIsolate {
return &vm_tag_counters_;
}
+ uword user_tag() const {
+ return user_tag_;
+ }
+ void set_user_tag(uword tag) {
+ user_tag_ = tag;
+ }
+
#if defined(DEBUG)
#define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \
void set_reusable_##object##_handle_scope_active(bool value) { \
@@ -553,6 +560,7 @@ class Isolate : public BaseIsolate {
InterruptableThreadState* thread_state_;
VMTagCounters vm_tag_counters_;
+ uword user_tag_;
// Isolate list next pointer.
Isolate* next_;

Powered by Google App Engine
This is Rietveld 408576698