| Index: src/compiler/pipeline-statistics.cc
|
| diff --git a/src/compiler/pipeline-statistics.cc b/src/compiler/pipeline-statistics.cc
|
| index 45408b5e9835d82abd95c85df743941a19c4c316..e58c3965784fc6c2a1f8b5e0c45be1a0e612e8ec 100644
|
| --- a/src/compiler/pipeline-statistics.cc
|
| +++ b/src/compiler/pipeline-statistics.cc
|
| @@ -16,6 +16,10 @@ void PipelineStatistics::CommonStats::Begin(
|
| scope_.Reset(new ZonePool::StatsScope(pipeline_stats->zone_pool_));
|
| timer_.Start();
|
| outer_zone_initial_size_ = pipeline_stats->OuterZoneSize();
|
| + allocated_bytes_at_start_ =
|
| + outer_zone_initial_size_ -
|
| + pipeline_stats->total_stats_.outer_zone_initial_size_ +
|
| + pipeline_stats->zone_pool_->GetCurrentAllocatedBytes();
|
| }
|
|
|
|
|
| @@ -28,6 +32,8 @@ void PipelineStatistics::CommonStats::End(
|
| size_t outer_zone_diff =
|
| pipeline_stats->OuterZoneSize() - outer_zone_initial_size_;
|
| diff->max_allocated_bytes_ = outer_zone_diff + scope_->GetMaxAllocatedBytes();
|
| + diff->absolute_max_allocated_bytes_ =
|
| + diff->max_allocated_bytes_ + allocated_bytes_at_start_;
|
| diff->total_allocated_bytes_ =
|
| outer_zone_diff + scope_->GetTotalAllocatedBytes();
|
| scope_.Reset(NULL);
|
|
|