Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: include/v8-profiler.h

Issue 1045753002: CpuProfiler: public API for deopt info in cpu profiler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: size_t Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-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 f9439c2e629445c610b226438a21f82b2687b8de..a7b589dcc40c567df539eb5eb174500a1501116a 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -17,6 +17,20 @@ struct HeapStatsUpdate;
typedef uint32_t SnapshotObjectId;
+
+class V8_EXPORT CpuProfileDeoptInfo {
+ public:
+ struct Frame {
+ int script_id;
+ unsigned int position;
+ };
+
+ const char* GetDeoptReason() const;
+ unsigned GetFramesCount() const;
+ bool GetCallFrames(Frame* frames, unsigned int length) const;
+};
+
+
/**
* CpuProfileNode represents a node in a call graph.
*/
@@ -85,6 +99,11 @@ class V8_EXPORT CpuProfileNode {
/** Retrieves a child node by index. */
const CpuProfileNode* GetChild(int index) const;
+ /** Retrieves a child node by index. */
alph 2015/03/30 12:31:21 The comment belongs to the second function.
loislo 2015/03/30 13:04:22 done.
+ unsigned GetDeoptCount() const;
+
+ const CpuProfileDeoptInfo* GetDeoptInfo(unsigned index) const;
+
static const int kNoLineNumberInfo = Message::kNoLineNumberInfo;
static const int kNoColumnNumberInfo = Message::kNoColumnInfo;
};
« no previous file with comments | « no previous file | src/api.cc » ('j') | test/cctest/test-cpu-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698