Chromium Code Reviews

Unified Diff: include/v8-profiler.h

Issue 17642009: CPUProfiler: propagate scriptId to the front-end (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: unnecessary line was removed Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/cpu-profiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/cpu-profiler.cc » ('J')

Powered by Google App Engine