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

Unified Diff: src/profiler/profile-generator-inl.h

Issue 2396733002: [profiler] Tracing-based CPU profiler. (Closed)
Patch Set: Addressing comments + moving traced-value back to src/tracing Created 4 years, 2 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 | « src/profiler/profile-generator.cc ('k') | src/profiler/tracing-cpu-profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profiler/profile-generator-inl.h
diff --git a/src/profiler/profile-generator-inl.h b/src/profiler/profile-generator-inl.h
index c50964d99060dabb8f43dd5c88ba716809b06670..050b3f9137d9ffdb01b5c4e7eb784a5f2d5dbdcc 100644
--- a/src/profiler/profile-generator-inl.h
+++ b/src/profiler/profile-generator-inl.h
@@ -30,20 +30,22 @@ CodeEntry::CodeEntry(CodeEventListener::LogEventsAndTags tag, const char* name,
line_info_(line_info),
instruction_start_(instruction_start) {}
-ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry)
+ProfileNode::ProfileNode(ProfileTree* tree, CodeEntry* entry,
+ ProfileNode* parent)
: tree_(tree),
entry_(entry),
self_ticks_(0),
children_(CodeEntriesMatch),
+ parent_(parent),
id_(tree->next_node_id()),
- line_ticks_(LineTickMatch) {}
-
+ line_ticks_(LineTickMatch) {
+ tree_->EnqueueNode(this);
+}
inline unsigned ProfileNode::function_id() const {
return tree_->GetFunctionId(this);
}
-
inline Isolate* ProfileNode::isolate() const { return tree_->isolate(); }
} // namespace internal
« no previous file with comments | « src/profiler/profile-generator.cc ('k') | src/profiler/tracing-cpu-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698