| Index: src/heap-profiler.cc
|
| diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc
|
| index 975d6f4221c9162a79ae37413bb2362839f78108..301b09993e7eb094703736747f8deb51e4f51775 100644
|
| --- a/src/heap-profiler.cc
|
| +++ b/src/heap-profiler.cc
|
| @@ -168,6 +168,14 @@ void HeapProfiler::StopHeapObjectsTrackingImpl() {
|
| }
|
|
|
|
|
| +size_t HeapProfiler::GetMemorySizeUsedByProfiler() {
|
| + HeapProfiler* profiler = Isolate::Current()->heap_profiler();
|
| + ASSERT(profiler != NULL);
|
| + size_t size = profiler->snapshots_->GetUsedMemorySize();
|
| + return size;
|
| +}
|
| +
|
| +
|
| int HeapProfiler::GetSnapshotsCount() {
|
| HeapProfiler* profiler = Isolate::Current()->heap_profiler();
|
| ASSERT(profiler != NULL);
|
|
|