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

Unified Diff: src/api.cc

Issue 23817003: Propagate bailout and dont_optimize reasons to cpu-profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 6de4dfd3dea4667c987bd0ea20061ba0a597e19e..6d3dd10ac9c9d8a3bc0bc57a1018d96043ec39c6 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -7235,6 +7235,15 @@ int CpuProfileNode::GetLineNumber() const {
}
+Handle<String> CpuProfileNode::GetBailoutReason() const {
+ i::Isolate* isolate = i::Isolate::Current();
+ IsDeadCheck(isolate, "v8::CpuProfileNode::GetBailoutReason");
+ const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
+ return ToApiHandle<String>(isolate->factory()->InternalizeUtf8String(
+ node->entry()->bailout_reason()));
+}
+
+
double CpuProfileNode::GetSelfSamplesCount() const {
i::Isolate* isolate = i::Isolate::Current();
IsDeadCheck(isolate, "v8::CpuProfileNode::GetSelfSamplesCount");

Powered by Google App Engine
This is Rietveld 408576698