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