diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc index 8b7135490b..7668bbc150 100644 --- a/src/heap-profiler.cc +++ b/src/heap-profiler.cc @@ -360,7 +360,7 @@ HeapSnapshot* HeapProfiler::TakeSnapshot(String* name) { HeapSnapshot* HeapProfiler::TakeSnapshotImpl(const char* name) { - Heap::CollectAllGarbage(false); + Heap::CollectAllGarbage(true); HeapSnapshot* result = snapshots_->NewSnapshot(name, next_snapshot_uid_++); HeapSnapshotGenerator generator(result); generator.GenerateSnapshot();