Chromium Code Reviews| Index: include/v8-profiler.h |
| diff --git a/include/v8-profiler.h b/include/v8-profiler.h |
| index 5338fcd59c2c7711ef475e9949b22411c6374b6c..1fdfbf257e04dd13a8271b779e334e6ff7a838a0 100644 |
| --- a/include/v8-profiler.h |
| +++ b/include/v8-profiler.h |
| @@ -75,6 +75,9 @@ class V8EXPORT CpuProfileNode { |
| /** Returns function name (empty string for anonymous functions.) */ |
| Handle<String> GetFunctionName() const; |
| + /** Returns id of the script where function is located. */ |
| + int GetScriptId() const; |
|
yurys
2013/06/25 09:16:55
In v8.h Script::Id returns v8::Local<v8::Value> an
|
| + |
| /** Returns resource name for script from where the function originates. */ |
| Handle<String> GetScriptResourceName() const; |
| @@ -114,6 +117,7 @@ class V8EXPORT CpuProfileNode { |
| /** Retrieves a child node by index. */ |
| const CpuProfileNode* GetChild(int index) const; |
| + static const int kNoScriptId = 0; |
| static const int kNoLineNumberInfo = Message::kNoLineNumberInfo; |
| }; |