Chromium Code Reviews| Index: runtime/vm/profiler.h |
| diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h |
| index f4b481e9766379ea72c7325a4eed96f56b6b72a9..acf2e85a17e4754072d20d4a1955db322aca633a 100644 |
| --- a/runtime/vm/profiler.h |
| +++ b/runtime/vm/profiler.h |
| @@ -25,6 +25,7 @@ class ProcessedSampleBuffer; |
| class Sample; |
| class SampleBuffer; |
| +class ProfileTrieNode; |
| class Profiler : public AllStatic { |
| public: |
| @@ -533,6 +534,9 @@ class ProcessedSample : public ZoneAllocated { |
| int64_t timestamp() const { return timestamp_; } |
| void set_timestamp(int64_t timestamp) { timestamp_ = timestamp; } |
| + ThreadId tid() const { return tid_; } |
| + void set_tid(ThreadId tid) { tid_ = tid; } |
| + |
| // The VM tag. |
| uword vm_tag() const { return vm_tag_; } |
| void set_vm_tag(uword tag) { vm_tag_ = tag; } |
| @@ -559,6 +563,9 @@ class ProcessedSample : public ZoneAllocated { |
| first_frame_executing_ = first_frame_executing; |
| } |
| + ProfileTrieNode* timeline_trie() const { return timeline_trie_; } |
| + void set_timeline_trie(ProfileTrieNode* trie) { timeline_trie_ = trie; } |
|
Cutch
2015/12/15 21:54:58
rewrite to:
ASSERT(timeline_trie_ == NULL);
timel
rmacnak
2015/12/16 00:14:20
Done.
|
| + |
| private: |
| void FixupCaller(const CodeLookupTable& clt, |
| uword pc_marker, |
| @@ -571,11 +578,13 @@ class ProcessedSample : public ZoneAllocated { |
| ZoneGrowableArray<uword> pcs_; |
| int64_t timestamp_; |
| + ThreadId tid_; |
| uword vm_tag_; |
| uword user_tag_; |
| intptr_t allocation_cid_; |
| bool truncated_; |
| bool first_frame_executing_; |
| + ProfileTrieNode* timeline_trie_; |
| friend class SampleBuffer; |
| DISALLOW_COPY_AND_ASSIGN(ProcessedSample); |