Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4a24f4bc88313638e9d3c3b4174cc39363b78001..ee8057920165ae7925129722abc3c1e845deaff9 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7326,6 +7326,15 @@ Handle<String> CpuProfileNode::GetFunctionName() const { |
} |
+int CpuProfileNode::GetScriptId() const { |
+ i::Isolate* isolate = i::Isolate::Current(); |
+ IsDeadCheck(isolate, "v8::CpuProfileNode::GetScriptId"); |
+ const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
+ const i::CodeEntry* entry = node->entry(); |
+ return entry->script_id(); |
+} |
+ |
+ |
Handle<String> CpuProfileNode::GetScriptResourceName() const { |
i::Isolate* isolate = i::Isolate::Current(); |
IsDeadCheck(isolate, "v8::CpuProfileNode::GetScriptResourceName"); |