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

Unified Diff: runtime/vm/profiler.h

Issue 408663004: Add Dart stack walker (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | 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 871d9ec6194d2d1e10cf1edb102d89414ee6b29b..0f629c6b42995d1a84ea69c8e985bbf11daa8b75 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -233,6 +233,14 @@ class Sample {
state_ = LeafFrameIsDart::update(leaf_frame_is_dart, state_);
}
+ bool ignore_sample() const {
+ return IgnoreBit::decode(state_);
+ }
+
+ void set_ignore_sample(bool ignore_sample) {
+ state_ = IgnoreBit::update(ignore_sample, state_);
+ }
+
static void InitOnce();
static intptr_t instance_size() {
@@ -247,9 +255,11 @@ class Sample {
enum StateBits {
kProcessedBit = 0,
kLeafFrameIsDartBit = 1,
+ kIgnoreBit = 2,
};
class ProcessedBit : public BitField<bool, kProcessedBit, 1> {};
class LeafFrameIsDart : public BitField<bool, kLeafFrameIsDartBit, 1> {};
+ class IgnoreBit : public BitField<bool, kIgnoreBit, 1> {};
int64_t timestamp_;
ThreadId tid_;
« no previous file with comments | « no previous file | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698