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

Unified Diff: runtime/vm/profiler.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/profiler.h
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h
index 64c60c4237197549172650c30c0a8a36cd597972..7ccff6a423a96b04e2cb32acdbe343bd4596d5b5 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -149,11 +149,19 @@ class Sample {
vm_tag_ = tag;
}
+ uword user_tag() const {
+ return user_tag_;
+ }
+ void set_user_tag(uword tag) {
+ user_tag_ = tag;
+ }
+
private:
int64_t timestamp_;
ThreadId tid_;
Isolate* isolate_;
uword vm_tag_;
+ uword user_tag_;
uword pcs_[kSampleFramesSize];
};
« runtime/vm/object.cc ('K') | « runtime/vm/object_store.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698