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; |
}; |