From 5e28c3e620fb4dc05a6e256b3506abccfa3cd6a2 Mon Sep 17 00:00:00 2001 From: "mikhail.naganov@gmail.com" Date: Wed, 11 Aug 2010 09:54:30 +0000 Subject: [PATCH] Heap profiler: enforce compaction before taking a snapshot. Review URL: http://codereview.chromium.org/3118007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5236 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap-profiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc index 8b71354..7668bbc 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(); -- 2.7.4