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

Unified Diff: runtime/vm/compiler_stats.cc

Issue 3004563003: Refactor Isolate name format, storage and log (Closed)
Patch Set: Make Dart_DebugName unique again Created 3 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/observatory/tests/service/set_name_rpc_test.dart ('k') | runtime/vm/dart_api_impl.cc » ('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 1615b49cccb18e9ab206529f6c1516c2960db176..3baca4ad69ef900c1c026f844df5d2af716ea503 100644
--- a/runtime/vm/compiler_stats.cc
+++ b/runtime/vm/compiler_stats.cc
@@ -143,8 +143,8 @@ char* CompilerStats::BenchmarkOutput() {
Update();
Log log(PrintToStats);
LogBlock lb(Thread::Current(), &log);
- log.Print("==== Compiler Stats for isolate '%s' ====\n",
- isolate_->debugger_name());
+ log.Print("==== Compiler Stats for isolate (%" Pd64 ") '%s' ====\n",
+ static_cast<int64_t>(isolate_->main_port()), isolate_->name());
log.Print("NumberOfTokens: %" Pd64 "\n", num_tokens_total);
log.Print("NumClassesParsed: %" Pd64 "\n", num_classes_parsed);
@@ -203,8 +203,8 @@ char* CompilerStats::PrintToZone() {
Log log(PrintToStats);
LogBlock lb(Thread::Current(), &log);
- log.Print("==== Compiler Stats for isolate '%s' ====\n",
- isolate_->debugger_name());
+ log.Print("==== Compiler Stats for isolate (%" Pd64 ") '%s' ====\n",
+ static_cast<int64_t>(isolate_->main_port()), isolate_->name());
log.Print("Number of tokens: %" Pd64 "\n", num_tokens_total);
log.Print("Source length: %" Pd64 " characters\n", src_length);
log.Print("Number of source tokens: %" Pd64 "\n", num_tokens_scanned);
« no previous file with comments | « runtime/observatory/tests/service/set_name_rpc_test.dart ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698