Chromium Code Reviews| Index: src/heap-profiler.cc | 
| =================================================================== | 
| --- src/heap-profiler.cc (revision 11338) | 
| +++ src/heap-profiler.cc (working copy) | 
| @@ -189,6 +189,15 @@ | 
| } | 
| +SnapshotObjectId HeapProfiler::GetSnapshotObjectId(Handle<Object> obj) { | 
| + if (!obj->IsHeapObject()) | 
| + return v8::HeapProfiler::kUnknownObjectId; | 
| + HeapProfiler* profiler = Isolate::Current()->heap_profiler(); | 
| + ASSERT(profiler != NULL); | 
| + return profiler->snapshots_->FindObjectId(HeapObject::cast(*obj) ->address()); | 
| 
 
mnaganov (inactive)
2012/04/16 20:15:56
nit: space before the last "->"
 
yurys
2012/04/17 09:01:14
Fixed in https://code.google.com/p/v8/source/detai
 
 | 
| +} | 
| + | 
| + | 
| void HeapProfiler::DeleteAllSnapshots() { | 
| HeapProfiler* profiler = Isolate::Current()->heap_profiler(); | 
| ASSERT(profiler != NULL); |