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

Side by Side Diff: runtime/vm/compiler_stats.h

Issue 2338463003: Improve compile time constant evaluation (Closed)
Patch Set: Merge branch 'master' into ponly 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 | « runtime/vm/compiler.cc ('k') | runtime/vm/compiler_stats.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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_COMPILER_STATS_H_ 5 #ifndef VM_COMPILER_STATS_H_
6 #define VM_COMPILER_STATS_H_ 6 #define VM_COMPILER_STATS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 23 matching lines...) Expand all
34 V(graphcompiler_timer, "flow graph compiler timer") \ 34 V(graphcompiler_timer, "flow graph compiler timer") \
35 V(codefinalizer_timer, "code finalization timer") \ 35 V(codefinalizer_timer, "code finalization timer") \
36 36
37 37
38 #define STAT_COUNTERS(V) \ 38 #define STAT_COUNTERS(V) \
39 V(num_tokens_total) \ 39 V(num_tokens_total) \
40 V(num_tokens_scanned) \ 40 V(num_tokens_scanned) \
41 V(num_tokens_consumed) \ 41 V(num_tokens_consumed) \
42 V(num_cached_consts) \ 42 V(num_cached_consts) \
43 V(num_const_cache_hits) \ 43 V(num_const_cache_hits) \
44 V(num_execute_const) \
44 V(num_classes_parsed) \ 45 V(num_classes_parsed) \
45 V(num_class_tokens) \ 46 V(num_class_tokens) \
46 V(num_functions_parsed) \ 47 V(num_functions_parsed) \
47 V(num_functions_compiled) \ 48 V(num_functions_compiled) \
48 V(num_functions_optimized) \ 49 V(num_functions_optimized) \
49 V(num_func_tokens_compiled) \ 50 V(num_func_tokens_compiled) \
50 V(num_implicit_final_getters) \ 51 V(num_implicit_final_getters) \
51 V(num_method_extractors) \ 52 V(num_method_extractors) \
52 V(src_length) \ 53 V(src_length) \
53 V(total_code_size) \ 54 V(total_code_size) \
(...skipping 24 matching lines...) Expand all
78 79
79 Timer graphoptimizer_timer; // Included in codegen_timer. 80 Timer graphoptimizer_timer; // Included in codegen_timer.
80 Timer graphcompiler_timer; // Included in codegen_timer. 81 Timer graphcompiler_timer; // Included in codegen_timer.
81 Timer codefinalizer_timer; // Included in codegen_timer. 82 Timer codefinalizer_timer; // Included in codegen_timer.
82 83
83 int64_t num_tokens_total; // Isolate + VM isolate 84 int64_t num_tokens_total; // Isolate + VM isolate
84 int64_t num_tokens_scanned; 85 int64_t num_tokens_scanned;
85 int64_t num_tokens_consumed; 86 int64_t num_tokens_consumed;
86 int64_t num_cached_consts; 87 int64_t num_cached_consts;
87 int64_t num_const_cache_hits; 88 int64_t num_const_cache_hits;
89 int64_t num_execute_const;
88 90
89 int64_t num_classes_parsed; 91 int64_t num_classes_parsed;
90 int64_t num_class_tokens; 92 int64_t num_class_tokens;
91 int64_t num_functions_parsed; // Num parsed functions. 93 int64_t num_functions_parsed; // Num parsed functions.
92 int64_t num_functions_compiled; // Num unoptimized compilations. 94 int64_t num_functions_compiled; // Num unoptimized compilations.
93 int64_t num_functions_optimized; // Num optimized compilations. 95 int64_t num_functions_optimized; // Num optimized compilations.
94 int64_t num_func_tokens_compiled; 96 int64_t num_func_tokens_compiled;
95 int64_t num_implicit_final_getters; 97 int64_t num_implicit_final_getters;
96 int64_t num_method_extractors; 98 int64_t num_method_extractors;
97 99
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 #define CSTAT_TIMER_SCOPE(thr, t) \ 136 #define CSTAT_TIMER_SCOPE(thr, t) \
135 TimerScope timer(FLAG_support_compiler_stats && FLAG_compiler_stats, \ 137 TimerScope timer(FLAG_support_compiler_stats && FLAG_compiler_stats, \
136 (FLAG_support_compiler_stats && FLAG_compiler_stats) ? \ 138 (FLAG_support_compiler_stats && FLAG_compiler_stats) ? \
137 &((thr)->compiler_stats()->t) : NULL, \ 139 &((thr)->compiler_stats()->t) : NULL, \
138 thr); 140 thr);
139 141
140 142
141 } // namespace dart 143 } // namespace dart
142 144
143 #endif // VM_COMPILER_STATS_H_ 145 #endif // VM_COMPILER_STATS_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/compiler_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698