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

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

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_stats.h ('k') | runtime/vm/parser.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 #include "vm/compiler_stats.h" 5 #include "vm/compiler_stats.h"
6 6
7 #include "vm/flags.h" 7 #include "vm/flags.h"
8 #include "vm/log.h" 8 #include "vm/log.h"
9 #include "vm/object_graph.h" 9 #include "vm/object_graph.h"
10 #include "vm/object_store.h" 10 #include "vm/object_store.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 log.Print("Total tokens consumed: %" Pd64 "\n", num_tokens_consumed); 228 log.Print("Total tokens consumed: %" Pd64 "\n", num_tokens_consumed);
229 log.Print("Classes parsed: %" Pd64 "\n", num_classes_parsed); 229 log.Print("Classes parsed: %" Pd64 "\n", num_classes_parsed);
230 log.Print(" Tokens consumed: %" Pd64 "\n", num_class_tokens); 230 log.Print(" Tokens consumed: %" Pd64 "\n", num_class_tokens);
231 log.Print("Functions parsed: %" Pd64 "\n", num_functions_parsed); 231 log.Print("Functions parsed: %" Pd64 "\n", num_functions_parsed);
232 log.Print(" Tokens consumed: %" Pd64 "\n", num_func_tokens_compiled); 232 log.Print(" Tokens consumed: %" Pd64 "\n", num_func_tokens_compiled);
233 log.Print("Impl getter funcs: %" Pd64 "\n", num_implicit_final_getters); 233 log.Print("Impl getter funcs: %" Pd64 "\n", num_implicit_final_getters);
234 log.Print("Impl method extractors: %" Pd64 "\n", num_method_extractors); 234 log.Print("Impl method extractors: %" Pd64 "\n", num_method_extractors);
235 log.Print("Local functions: %" Pd64 "\n", num_local_functions); 235 log.Print("Local functions: %" Pd64 "\n", num_local_functions);
236 log.Print("Consts cached: %" Pd64 "\n", num_cached_consts); 236 log.Print("Consts cached: %" Pd64 "\n", num_cached_consts);
237 log.Print("Consts cache hits: %" Pd64 "\n", num_const_cache_hits); 237 log.Print("Consts cache hits: %" Pd64 "\n", num_const_cache_hits);
238 log.Print("Consts calcuated: %" Pd64 "\n", num_execute_const);
238 239
239 int64_t scan_usecs = scanner_timer.TotalElapsedTime(); 240 int64_t scan_usecs = scanner_timer.TotalElapsedTime();
240 log.Print("Scanner time: %" Pd64 " ms\n", scan_usecs / 1000); 241 log.Print("Scanner time: %" Pd64 " ms\n", scan_usecs / 1000);
241 int64_t scan_speed = 242 int64_t scan_speed =
242 scan_usecs > 0 ? 1000 * num_tokens_consumed / scan_usecs : 0; 243 scan_usecs > 0 ? 1000 * num_tokens_consumed / scan_usecs : 0;
243 log.Print("Scanner speed: %" Pd64 " tokens/ms\n", scan_speed); 244 log.Print("Scanner speed: %" Pd64 " tokens/ms\n", scan_speed);
244 int64_t parse_usecs = parser_timer.TotalElapsedTime(); 245 int64_t parse_usecs = parser_timer.TotalElapsedTime();
245 int64_t parse_speed = 246 int64_t parse_speed =
246 parse_usecs > 0 ? 1000 * num_tokens_consumed / parse_usecs : 0; 247 parse_usecs > 0 ? 1000 * num_tokens_consumed / parse_usecs : 0;
247 log.Print("Parser time: %" Pd64 " ms\n", parse_usecs / 1000); 248 log.Print("Parser time: %" Pd64 " ms\n", parse_usecs / 1000);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 log.Print(" VarDesc size: %" Pd64 " KB\n", vardesc_size / 1024); 310 log.Print(" VarDesc size: %" Pd64 " KB\n", vardesc_size / 1024);
310 log.Flush(); 311 log.Flush();
311 char* stats_text = text; 312 char* stats_text = text;
312 text = NULL; 313 text = NULL;
313 return stats_text; 314 return stats_text;
314 } 315 }
315 316
316 #endif // !PRODUCT 317 #endif // !PRODUCT
317 318
318 } // namespace dart 319 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler_stats.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698