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 |