| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index b3c77d8cdde5043a50593ab2e16c79d081f7c0e4..48c64b314088fc40e8f048c78c1e0b9a77e649a8 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4561,6 +4561,12 @@ Handle<String> HeapGraphNode::GetName() const {
|
| }
|
|
|
|
|
| +uint64_t HeapGraphNode::GetId() const {
|
| + IsDeadCheck("v8::HeapGraphNode::GetId");
|
| + return reinterpret_cast<const i::HeapEntry*>(this)->id();
|
| +}
|
| +
|
| +
|
| int HeapGraphNode::GetSelfSize() const {
|
| IsDeadCheck("v8::HeapGraphNode::GetSelfSize");
|
| return reinterpret_cast<const i::HeapEntry*>(this)->self_size();
|
| @@ -4624,6 +4630,22 @@ const HeapGraphPath* HeapGraphNode::GetRetainingPath(int index) const {
|
| }
|
|
|
|
|
| +const HeapGraphNode* HeapSnapshotsDiff::GetAdditionsRoot() const {
|
| + IsDeadCheck("v8::HeapSnapshotsDiff::GetAdditionsRoot");
|
| + const i::HeapSnapshotsDiff* diff =
|
| + reinterpret_cast<const i::HeapSnapshotsDiff*>(this);
|
| + return reinterpret_cast<const HeapGraphNode*>(diff->additions_root());
|
| +}
|
| +
|
| +
|
| +const HeapGraphNode* HeapSnapshotsDiff::GetDeletionsRoot() const {
|
| + IsDeadCheck("v8::HeapSnapshotsDiff::GetDeletionsRoot");
|
| + const i::HeapSnapshotsDiff* diff =
|
| + reinterpret_cast<const i::HeapSnapshotsDiff*>(this);
|
| + return reinterpret_cast<const HeapGraphNode*>(diff->deletions_root());
|
| +}
|
| +
|
| +
|
| unsigned HeapSnapshot::GetUid() const {
|
| IsDeadCheck("v8::HeapSnapshot::GetUid");
|
| return reinterpret_cast<const i::HeapSnapshot*>(this)->uid();
|
| @@ -4639,7 +4661,7 @@ Handle<String> HeapSnapshot::GetTitle() const {
|
| }
|
|
|
|
|
| -const HeapGraphNode* HeapSnapshot::GetHead() const {
|
| +const HeapGraphNode* HeapSnapshot::GetRoot() const {
|
| IsDeadCheck("v8::HeapSnapshot::GetHead");
|
| const i::HeapSnapshot* snapshot =
|
| reinterpret_cast<const i::HeapSnapshot*>(this);
|
| @@ -4647,6 +4669,18 @@ const HeapGraphNode* HeapSnapshot::GetHead() const {
|
| }
|
|
|
|
|
| +const HeapSnapshotsDiff* HeapSnapshot::CompareWith(
|
| + const HeapSnapshot* snapshot) const {
|
| + IsDeadCheck("v8::HeapSnapshot::CompareWith");
|
| + i::HeapSnapshot* snapshot1 = const_cast<i::HeapSnapshot*>(
|
| + reinterpret_cast<const i::HeapSnapshot*>(this));
|
| + i::HeapSnapshot* snapshot2 = const_cast<i::HeapSnapshot*>(
|
| + reinterpret_cast<const i::HeapSnapshot*>(snapshot));
|
| + return reinterpret_cast<const HeapSnapshotsDiff*>(
|
| + snapshot1->CompareWith(snapshot2));
|
| +}
|
| +
|
| +
|
| int HeapProfiler::GetSnapshotsCount() {
|
| IsDeadCheck("v8::HeapProfiler::GetSnapshotsCount");
|
| return i::HeapProfiler::GetSnapshotsCount();
|
|
|