| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index aee9e3a469eae454a9fdc7b241142050044a730a..d0ec5d64340c1b33307a2a69b6f86773698e0679 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -7486,6 +7486,19 @@ SnapshotObjectId HeapProfiler::GetObjectId(Handle<Value> value) {
|
| }
|
|
|
|
|
| +Handle<Value> HeapProfiler::FindObjectById(SnapshotObjectId id) {
|
| + i::Handle<i::Object> obj =
|
| + reinterpret_cast<i::HeapProfiler*>(this)->FindHeapObjectById(id);
|
| + if (obj.is_null()) return Local<Value>();
|
| + return Utils::ToLocal(obj);
|
| +}
|
| +
|
| +
|
| +void HeapProfiler::ClearObjectIds() {
|
| + reinterpret_cast<i::HeapProfiler*>(this)->ClearHeapObjectMap();
|
| +}
|
| +
|
| +
|
| const HeapSnapshot* HeapProfiler::TakeHeapSnapshot(
|
| Handle<String> title,
|
| ActivityControl* control,
|
|
|