Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/compiler/pipeline-statistics.cc

Issue 2284313003: Separate CompilationInfo into its own file. (Closed)
Patch Set: fix Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698