Revision: 5236
Author: [email protected]
Date: Wed Aug 11 02:54:30 2010
Log: Heap profiler: enforce compaction before taking a snapshot.

Review URL: http://codereview.chromium.org/3118007
http://code.google.com/p/v8/source/detail?r=5236

Modified:
 /branches/bleeding_edge/src/heap-profiler.cc

=======================================
--- /branches/bleeding_edge/src/heap-profiler.cc        Wed Aug 11 02:03:23 2010
+++ /branches/bleeding_edge/src/heap-profiler.cc        Wed Aug 11 02:54:30 2010
@@ -360,7 +360,7 @@


 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();

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to