Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index edffca18f42c7e792da0857f512172b27238a315..4bbb77834ec78bfa737abb668a4f899ff8f8af72 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -7315,6 +7315,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"); |