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

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
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
};
« no previous file with comments | « 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