| Index: src/heap-profiler.cc
|
| diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc
|
| index 55f09b92831f87e93a3338f1595b07b213b5a676..73b9748f18a4c4f00894864ac33929c7fccba7b6 100644
|
| --- a/src/heap-profiler.cc
|
| +++ b/src/heap-profiler.cc
|
| @@ -360,6 +360,7 @@ HeapSnapshot* HeapProfiler::TakeSnapshot(String* name) {
|
|
|
|
|
| HeapSnapshot* HeapProfiler::TakeSnapshotImpl(const char* name) {
|
| + Heap::CollectAllGarbage(false);
|
| HeapSnapshot* result = snapshots_->NewSnapshot(name, next_snapshot_uid_++);
|
| HeapSnapshotGenerator generator(result);
|
| generator.GenerateSnapshot();
|
|
|