| OLD | NEW |
| 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/flags.h" | 9 #include "vm/flags.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 Timer graphinliner_build_timer; // Included in codegen_timer. | 34 Timer graphinliner_build_timer; // Included in codegen_timer. |
| 35 Timer graphinliner_ssa_timer; // Included in codegen_timer. | 35 Timer graphinliner_ssa_timer; // Included in codegen_timer. |
| 36 Timer graphinliner_opt_timer; // Included in codegen_timer. | 36 Timer graphinliner_opt_timer; // Included in codegen_timer. |
| 37 Timer graphinliner_subst_timer; // Included in codegen_timer. | 37 Timer graphinliner_subst_timer; // Included in codegen_timer. |
| 38 | 38 |
| 39 Timer graphoptimizer_timer; // Included in codegen_timer. | 39 Timer graphoptimizer_timer; // Included in codegen_timer. |
| 40 Timer graphcompiler_timer; // Included in codegen_timer. | 40 Timer graphcompiler_timer; // Included in codegen_timer. |
| 41 Timer codefinalizer_timer; // Included in codegen_timer. | 41 Timer codefinalizer_timer; // Included in codegen_timer. |
| 42 | 42 |
| 43 int64_t num_tokens_total; // Isolate + VM isolate | 43 int64_t num_tokens_total; // Isolate + VM isolate |
| 44 int64_t num_literal_tokens_total; | |
| 45 int64_t num_ident_tokens_total; | |
| 46 int64_t num_tokens_scanned; | 44 int64_t num_tokens_scanned; |
| 47 int64_t num_tokens_consumed; | 45 int64_t num_tokens_consumed; |
| 48 int64_t num_cached_consts; | 46 int64_t num_cached_consts; |
| 49 int64_t num_const_cache_hits; | 47 int64_t num_const_cache_hits; |
| 50 | 48 |
| 51 int64_t num_classes_parsed; | 49 int64_t num_classes_parsed; |
| 52 int64_t num_class_tokens; | 50 int64_t num_class_tokens; |
| 53 int64_t num_functions_parsed; // Num parsed functions. | 51 int64_t num_functions_parsed; // Num parsed functions. |
| 54 int64_t num_functions_compiled; // Num unoptimized compilations. | 52 int64_t num_functions_compiled; // Num unoptimized compilations. |
| 55 int64_t num_functions_optimized; // Num optimized compilations. | 53 int64_t num_functions_optimized; // Num optimized compilations. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 84 (thread)->isolate()->compiler_stats()->counter : 0) | 82 (thread)->isolate()->compiler_stats()->counter : 0) |
| 85 | 83 |
| 86 #define CSTAT_TIMER_SCOPE(thr, t) \ | 84 #define CSTAT_TIMER_SCOPE(thr, t) \ |
| 87 TimerScope timer(FLAG_compiler_stats, \ | 85 TimerScope timer(FLAG_compiler_stats, \ |
| 88 FLAG_compiler_stats ? &((thr)->isolate()->compiler_stats()->t) : NULL, \ | 86 FLAG_compiler_stats ? &((thr)->isolate()->compiler_stats()->t) : NULL, \ |
| 89 thr); | 87 thr); |
| 90 | 88 |
| 91 } // namespace dart | 89 } // namespace dart |
| 92 | 90 |
| 93 #endif // VM_COMPILER_STATS_H_ | 91 #endif // VM_COMPILER_STATS_H_ |
| OLD | NEW |