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

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

Issue 676693002: [turbofan] add absolute peak to stats (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/pipeline-statistics.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 #ifndef V8_COMPILER_PIPELINE_STATISTICS_H_ 5 #ifndef V8_COMPILER_PIPELINE_STATISTICS_H_
6 #define V8_COMPILER_PIPELINE_STATISTICS_H_ 6 #define V8_COMPILER_PIPELINE_STATISTICS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "src/compilation-statistics.h" 10 #include "src/compilation-statistics.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 CommonStats() : outer_zone_initial_size_(0) {} 33 CommonStats() : outer_zone_initial_size_(0) {}
34 34
35 void Begin(PipelineStatistics* pipeline_stats); 35 void Begin(PipelineStatistics* pipeline_stats);
36 void End(PipelineStatistics* pipeline_stats, 36 void End(PipelineStatistics* pipeline_stats,
37 CompilationStatistics::BasicStats* diff); 37 CompilationStatistics::BasicStats* diff);
38 38
39 SmartPointer<ZonePool::StatsScope> scope_; 39 SmartPointer<ZonePool::StatsScope> scope_;
40 base::ElapsedTimer timer_; 40 base::ElapsedTimer timer_;
41 size_t outer_zone_initial_size_; 41 size_t outer_zone_initial_size_;
42 size_t allocated_bytes_at_start_;
42 }; 43 };
43 44
44 bool InPhaseKind() { return !phase_kind_stats_.scope_.is_empty(); } 45 bool InPhaseKind() { return !phase_kind_stats_.scope_.is_empty(); }
45 void EndPhaseKind(); 46 void EndPhaseKind();
46 47
47 friend class PhaseScope; 48 friend class PhaseScope;
48 bool InPhase() { return !phase_stats_.scope_.is_empty(); } 49 bool InPhase() { return !phase_stats_.scope_.is_empty(); }
49 void BeginPhase(const char* name); 50 void BeginPhase(const char* name);
50 void EndPhase(); 51 void EndPhase();
51 52
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 PipelineStatistics* const pipeline_stats_; 86 PipelineStatistics* const pipeline_stats_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(PhaseScope); 88 DISALLOW_COPY_AND_ASSIGN(PhaseScope);
88 }; 89 };
89 90
90 } // namespace compiler 91 } // namespace compiler
91 } // namespace internal 92 } // namespace internal
92 } // namespace v8 93 } // namespace v8
93 94
94 #endif 95 #endif
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/pipeline-statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698