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

Unified Diff: runtime/vm/compiler_stats.cc

Issue 1308073005: Introduce per-isolate cache for compile time constants (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Addressing review comments Created 5 years, 4 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/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler_stats.cc
diff --git a/runtime/vm/compiler_stats.cc b/runtime/vm/compiler_stats.cc
index 2a03611e0b5b858bd7da066f1ffd64e5b7182efa..59d1dd4ab8b552dd4f2395f7e287b4de8205658f 100644
--- a/runtime/vm/compiler_stats.cc
+++ b/runtime/vm/compiler_stats.cc
@@ -73,6 +73,8 @@ CompilerStats::CompilerStats(Isolate* isolate)
num_tokens_consumed(0),
num_token_checks(0),
num_tokens_lookahead(0),
+ num_cached_consts(0),
+ num_const_cache_hits(0),
num_classes_compiled(0),
num_functions_compiled(0),
num_implicit_final_getters(0),
@@ -111,6 +113,8 @@ void CompilerStats::Print() {
OS::Print("Token lookahead: %" Pd64 " (%" Pd64 "%% of tokens checked)\n",
num_tokens_lookahead,
(100 * num_tokens_lookahead) / num_token_checks);
+ OS::Print("Consts cached: %" Pd64 "\n", num_cached_consts);
+ OS::Print("Consts cache hits: %" Pd64 "\n", num_const_cache_hits);
OS::Print("Classes parsed: %" Pd64 "\n", num_classes_compiled);
OS::Print("Functions compiled: %" Pd64 "\n", num_functions_compiled);
« no previous file with comments | « runtime/vm/compiler_stats.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698