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

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

Issue 190753004: - Ensure that all names in local scopes are symbols. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/ast_test.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/flags.h" 9 #include "vm/flags.h"
10 #include "vm/timer.h" 10 #include "vm/timer.h"
11 11
12 12
13 13
14 namespace dart { 14 namespace dart {
15 15
16 DECLARE_FLAG(bool, compiler_stats); 16 DECLARE_FLAG(bool, compiler_stats);
17 17
18 class CompilerStats : AllStatic { 18 class CompilerStats : AllStatic {
19 public: 19 public:
20 static intptr_t num_tokens_total; 20 static int64_t num_tokens_total;
21 static intptr_t num_literal_tokens_total; 21 static int64_t num_literal_tokens_total;
22 static intptr_t num_ident_tokens_total; 22 static int64_t num_ident_tokens_total;
23 static intptr_t num_tokens_consumed; 23 static int64_t num_tokens_consumed;
24 static intptr_t num_token_checks; 24 static int64_t num_token_checks;
25 static intptr_t num_tokens_rewind; 25 static int64_t num_tokens_rewind;
26 static intptr_t num_tokens_lookahead; 26 static int64_t num_tokens_lookahead;
27 27
28 static intptr_t num_lib_cache_hit; 28 static int64_t num_lib_cache_hit;
29 static intptr_t num_names_cached; 29 static int64_t num_names_cached;
30 static intptr_t make_accessor_name; 30 static int64_t make_accessor_name;
31 static intptr_t make_field_name; 31 static int64_t make_field_name;
32 32
33 static intptr_t num_classes_compiled; 33 static int64_t num_classes_compiled;
34 static intptr_t num_functions_compiled; 34 static int64_t num_functions_compiled;
35 static intptr_t num_implicit_final_getters; 35 static int64_t num_implicit_final_getters;
36 static intptr_t num_static_initializer_funcs; 36 static int64_t num_static_initializer_funcs;
37 37
38 static intptr_t src_length; // Total number of characters in source. 38 static int64_t src_length; // Total number of characters in source.
39 static intptr_t code_allocated; // Bytes allocated for generated code. 39 static int64_t code_allocated; // Bytes allocated for generated code.
40 static Timer parser_timer; // Cumulative runtime of parser. 40 static Timer parser_timer; // Cumulative runtime of parser.
41 static Timer scanner_timer; // Cumulative runtime of scanner. 41 static Timer scanner_timer; // Cumulative runtime of scanner.
42 static Timer codegen_timer; // Cumulative runtime of code generator. 42 static Timer codegen_timer; // Cumulative runtime of code generator.
43 static Timer graphbuilder_timer; // Included in codegen_timer. 43 static Timer graphbuilder_timer; // Included in codegen_timer.
44 static Timer ssa_timer; // Included in codegen_timer. 44 static Timer ssa_timer; // Included in codegen_timer.
45 static Timer graphinliner_timer; // Included in codegen_timer. 45 static Timer graphinliner_timer; // Included in codegen_timer.
46 static Timer graphinliner_parse_timer; // Included in codegen_timer. 46 static Timer graphinliner_parse_timer; // Included in codegen_timer.
47 static Timer graphinliner_build_timer; // Included in codegen_timer. 47 static Timer graphinliner_build_timer; // Included in codegen_timer.
48 static Timer graphinliner_ssa_timer; // Included in codegen_timer. 48 static Timer graphinliner_ssa_timer; // Included in codegen_timer.
49 static Timer graphinliner_opt_timer; // Included in codegen_timer. 49 static Timer graphinliner_opt_timer; // Included in codegen_timer.
50 static Timer graphinliner_find_timer; // Included in codegen_timer. 50 static Timer graphinliner_find_timer; // Included in codegen_timer.
51 static Timer graphinliner_plug_timer; // Included in codegen_timer. 51 static Timer graphinliner_plug_timer; // Included in codegen_timer.
52 static Timer graphinliner_subst_timer; // Included in codegen_timer. 52 static Timer graphinliner_subst_timer; // Included in codegen_timer.
53 53
54 static Timer graphoptimizer_timer; // Included in codegen_timer. 54 static Timer graphoptimizer_timer; // Included in codegen_timer.
55 static Timer graphcompiler_timer; // Included in codegen_timer. 55 static Timer graphcompiler_timer; // Included in codegen_timer.
56 static Timer codefinalizer_timer; // Included in codegen_timer. 56 static Timer codefinalizer_timer; // Included in codegen_timer.
57 57
58 static void Print(); 58 static void Print();
59 }; 59 };
60 60
61 61
62 } // namespace dart 62 } // namespace dart
63 63
64 #endif // VM_COMPILER_STATS_H_ 64 #endif // VM_COMPILER_STATS_H_
OLDNEW
« no previous file with comments | « runtime/vm/ast_test.cc ('k') | runtime/vm/compiler_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698