| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index fc63c2c3163c732bf90d9f24bb741c98eddc56dc..8eb0f2d55c51f475f0d923400a0e40ef64d3ba0f 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8579,6 +8579,10 @@ Local<String> CpuProfileNode::GetFunctionName() const {
|
| }
|
| }
|
|
|
| +const char* CpuProfileNode::GetFunctionNameStr() const {
|
| + const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
|
| + return node->entry()->name();
|
| +}
|
|
|
| int CpuProfileNode::GetScriptId() const {
|
| const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
|
| @@ -8586,7 +8590,6 @@ int CpuProfileNode::GetScriptId() const {
|
| return entry->script_id();
|
| }
|
|
|
| -
|
| Local<String> CpuProfileNode::GetScriptResourceName() const {
|
| const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
|
| i::Isolate* isolate = node->isolate();
|
| @@ -8594,6 +8597,10 @@ Local<String> CpuProfileNode::GetScriptResourceName() const {
|
| node->entry()->resource_name()));
|
| }
|
|
|
| +const char* CpuProfileNode::GetScriptResourceNameStr() const {
|
| + const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this);
|
| + return node->entry()->resource_name();
|
| +}
|
|
|
| int CpuProfileNode::GetLineNumber() const {
|
| return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number();
|
|
|