Index: src/heap-profiler.cc |
diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc |
index e47d66f984805def59210f6920d7618fcd1dce01..d3cc4ab9106f7e62bbd8f0f77f09cdd2a8694cf0 100644 |
--- a/src/heap-profiler.cc |
+++ b/src/heap-profiler.cc |
@@ -788,15 +788,13 @@ void AggregatedHeapSnapshotGenerator::CalculateStringsStats() { |
void AggregatedHeapSnapshotGenerator::CollectStats(HeapObject* obj) { |
InstanceType type = obj->map()->instance_type(); |
ASSERT(0 <= type && type <= LAST_TYPE); |
- if (!FreeListNode::IsFreeListNode(obj)) { |
- agg_snapshot_->info()[type].increment_number(1); |
- agg_snapshot_->info()[type].increment_bytes(obj->Size()); |
- } |
+ agg_snapshot_->info()[type].increment_number(1); |
+ agg_snapshot_->info()[type].increment_bytes(obj->Size()); |
} |
void AggregatedHeapSnapshotGenerator::GenerateSnapshot() { |
- HeapIterator iterator; |
+ HeapIterator iterator(HeapIterator::kPreciseFiltering); |
for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
CollectStats(obj); |
agg_snapshot_->js_cons_profile()->CollectStats(obj); |