Index: runtime/vm/profiler.h |
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h |
index 64c60c4237197549172650c30c0a8a36cd597972..149f3826d99601cf1892e49a021be2b88923b90f 100644 |
--- a/runtime/vm/profiler.h |
+++ b/runtime/vm/profiler.h |
@@ -112,6 +112,7 @@ class Sample { |
tid_ = tid; |
isolate_ = isolate; |
vm_tag_ = VMTag::kInvalidTagId; |
+ user_tag_ = UserTags::kNoUserTag; |
for (intptr_t i = 0; i < kSampleFramesSize; i++) { |
pcs_[i] = 0; |
} |
@@ -149,11 +150,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]; |
}; |