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

Unified Diff: runtime/vm/profiler.h

Issue 1525913002: Observatory: Include profiler samples in the timeline view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/observatory/web/timeline.js ('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 f4b481e9766379ea72c7325a4eed96f56b6b72a9..e598e70089d75d8ad5766630e318a95255869f26 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,12 @@ class ProcessedSample : public ZoneAllocated {
first_frame_executing_ = first_frame_executing;
}
+ ProfileTrieNode* timeline_trie() const { return timeline_trie_; }
+ void set_timeline_trie(ProfileTrieNode* trie) {
+ ASSERT(timeline_trie_ == NULL);
+ timeline_trie_ = trie;
+ }
+
private:
void FixupCaller(const CodeLookupTable& clt,
uword pc_marker,
@@ -571,11 +581,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);
« no previous file with comments | « runtime/observatory/web/timeline.js ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698