| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "src/compiler.h" | 7 #include "src/compilation-info.h" |
| 8 #include "src/compiler/pipeline-statistics.h" | 8 #include "src/compiler/pipeline-statistics.h" |
| 9 #include "src/compiler/zone-pool.h" | 9 #include "src/compiler/zone-pool.h" |
| 10 #include "src/isolate.h" |
| 10 | 11 |
| 11 namespace v8 { | 12 namespace v8 { |
| 12 namespace internal { | 13 namespace internal { |
| 13 namespace compiler { | 14 namespace compiler { |
| 14 | 15 |
| 15 void PipelineStatistics::CommonStats::Begin( | 16 void PipelineStatistics::CommonStats::Begin( |
| 16 PipelineStatistics* pipeline_stats) { | 17 PipelineStatistics* pipeline_stats) { |
| 17 DCHECK(!scope_); | 18 DCHECK(!scope_); |
| 18 scope_.reset(new ZonePool::StatsScope(pipeline_stats->zone_pool_)); | 19 scope_.reset(new ZonePool::StatsScope(pipeline_stats->zone_pool_)); |
| 19 timer_.Start(); | 20 timer_.Start(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void PipelineStatistics::EndPhase() { | 97 void PipelineStatistics::EndPhase() { |
| 97 DCHECK(InPhaseKind()); | 98 DCHECK(InPhaseKind()); |
| 98 CompilationStatistics::BasicStats diff; | 99 CompilationStatistics::BasicStats diff; |
| 99 phase_stats_.End(this, &diff); | 100 phase_stats_.End(this, &diff); |
| 100 compilation_stats_->RecordPhaseStats(phase_kind_name_, phase_name_, diff); | 101 compilation_stats_->RecordPhaseStats(phase_kind_name_, phase_name_, diff); |
| 101 } | 102 } |
| 102 | 103 |
| 103 } // namespace compiler | 104 } // namespace compiler |
| 104 } // namespace internal | 105 } // namespace internal |
| 105 } // namespace v8 | 106 } // namespace v8 |
| OLD | NEW |