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

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 7bb26a5cc192e5cb789c2f38387d56255af03f93..a2b0112a8a57acd292b1f73fb61369799d6732d0 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -451,6 +451,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) { \
@@ -532,6 +539,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