Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index aee9e3a469eae454a9fdc7b241142050044a730a..36ac4728217064936594c34b5041aecc7e2927d5 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -7486,6 +7486,18 @@ SnapshotObjectId HeapProfiler::GetObjectId(Handle<Value> value) { |
| } |
| +Local<Value> HeapProfiler::FindHeapObjectById(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::ClearHeapObjectIds() { |
| + reinterpret_cast<i::HeapProfiler*>(this)->ClearHeapObjectMap(); |
| +} |
| + |
|
alph
2013/12/04 08:39:38
nit: add an empty line
|
| const HeapSnapshot* HeapProfiler::TakeHeapSnapshot( |
| Handle<String> title, |
| ActivityControl* control, |