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

Unified Diff: runtime/vm/compiler_stats.cc

Issue 135123011: Introduce cache of resolved names in library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/compiler_stats.h ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler_stats.cc
===================================================================
--- runtime/vm/compiler_stats.cc (revision 32384)
+++ runtime/vm/compiler_stats.cc (working copy)
@@ -61,6 +61,11 @@
intptr_t CompilerStats::num_tokens_rewind = 0;
intptr_t CompilerStats::num_tokens_lookahead = 0;
+intptr_t CompilerStats::num_lib_cache_hit = 0;
+intptr_t CompilerStats::num_names_cached = 0;
+intptr_t CompilerStats::make_accessor_name = 0;
+intptr_t CompilerStats::make_field_name = 0;
+
void CompilerStats::Print() {
if (!FLAG_compiler_stats) {
return;
@@ -79,6 +84,12 @@
OS::Print("Token lookahead: %" Pd " (%" Pd "%% of tokens checked)\n",
num_tokens_lookahead,
(100 * num_tokens_lookahead) / num_token_checks);
+
+ OS::Print("Lib names cached: %" Pd "\n", num_names_cached);
+ OS::Print("Lib name cache hit: %" Pd "\n", num_lib_cache_hit);
+ OS::Print("Accessor mangling: %" Pd " field->acc %" Pd " acc->field\n",
+ make_accessor_name, make_field_name);
+
OS::Print("Source length: %" Pd " characters\n", src_length);
int64_t scan_usecs = scanner_timer.TotalElapsedTime();
OS::Print("Scanner time: %" Pd64 " msecs\n",
« no previous file with comments | « runtime/vm/compiler_stats.h ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698