Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index c76f826ae9eb4ff76387732b74d3e0bc012fd21a..d7c9ad1a03b185564ed88d30c7d73e4d7259bb09 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7545,6 +7545,12 @@ const CpuProfileNode* CpuProfileNode::GetChild(int index) const { |
} |
+const std::vector<CpuProfileDeoptInfo>& CpuProfileNode::GetDeoptInfos() const { |
+ const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
+ return node->deopt_infos(); |
+} |
+ |
+ |
void CpuProfile::Delete() { |
i::Isolate* isolate = i::Isolate::Current(); |
i::CpuProfiler* profiler = isolate->cpu_profiler(); |