| Index: include/v8-profiler.h
|
| diff --git a/include/v8-profiler.h b/include/v8-profiler.h
|
| index bcb69f3763e1b76dfc48e215a7e2fad80f235cee..55c8386bdeff4aa1a7bb3570671999013216de35 100644
|
| --- a/include/v8-profiler.h
|
| +++ b/include/v8-profiler.h
|
| @@ -131,6 +131,13 @@ class V8_EXPORT CpuProfileNode {
|
| /** Returns function name (empty string for anonymous functions.) */
|
| Local<String> GetFunctionName() const;
|
|
|
| + /**
|
| + * Returns function name (empty string for anonymous functions.)
|
| + * The string ownership is *not* passed to the caller. It stays valid until
|
| + * profile is deleted. The function is thread safe.
|
| + */
|
| + const char* GetFunctionNameStr() const;
|
| +
|
| /** Returns id of the script where function is located. */
|
| int GetScriptId() const;
|
|
|
| @@ -138,6 +145,13 @@ class V8_EXPORT CpuProfileNode {
|
| Local<String> GetScriptResourceName() const;
|
|
|
| /**
|
| + * Returns resource name for script from where the function originates.
|
| + * The string ownership is *not* passed to the caller. It stays valid until
|
| + * profile is deleted. The function is thread safe.
|
| + */
|
| + const char* GetScriptResourceNameStr() const;
|
| +
|
| + /**
|
| * Returns the number, 1-based, of the line where the function originates.
|
| * kNoLineNumberInfo if no line number information is available.
|
| */
|
|
|