Index: src/heap-profiler.cc |
=================================================================== |
--- src/heap-profiler.cc (revision 7102) |
+++ src/heap-profiler.cc (working copy) |
@@ -373,13 +373,13 @@ |
bool generation_completed = true; |
switch (s_type) { |
case HeapSnapshot::kFull: { |
- Heap::CollectAllGarbage(true); |
+ Heap::CollectAllGarbage(Heap::kSweepPreciselyMask); |
HeapSnapshotGenerator generator(result, control); |
generation_completed = generator.GenerateSnapshot(); |
break; |
} |
case HeapSnapshot::kAggregated: { |
- Heap::CollectAllGarbage(true); |
+ Heap::CollectAllGarbage(Heap::kSweepPreciselyMask); |
AggregatedHeapSnapshot agg_snapshot; |
AggregatedHeapSnapshotGenerator generator(&agg_snapshot); |
generator.GenerateSnapshot(); |
@@ -809,8 +809,8 @@ |
void AggregatedHeapSnapshotGenerator::GenerateSnapshot() { |
- HeapIterator iterator(HeapIterator::kFilterUnreachable); |
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ HeapIterator iterator; |
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) { |
CollectStats(obj); |
agg_snapshot_->js_cons_profile()->CollectStats(obj); |
agg_snapshot_->js_retainer_profile()->CollectStats(obj); |