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

Unified Diff: runtime/vm/isolate.cc

Issue 1352483002: Add benchmark output to compiler stats. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: cleanup Created 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 0c992e107299e90b5e28aabe6b28ebb5fd0192bd..5100259d3275a555f4dd6b2e0d1fb9f3297be182 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -842,9 +842,12 @@ Isolate* Isolate::Init(const char* name_prefix,
"\tisolate: %s\n", result->name());
}
}
- if (FLAG_compiler_stats) {
- result->compiler_stats_ = new CompilerStats(result);
+
+ result->compiler_stats_ = new CompilerStats(result);
+ if (FLAG_compiler_benchmark) {
+ result->compiler_stats_->EnableBenchmark();
}
+
ObjectIdRing::Init(result);
// Add to isolate list.
AddIsolateTolist(result);
@@ -1506,7 +1509,7 @@ void Isolate::Shutdown() {
HandleScope handle_scope(thread);
NoSafepointScope no_safepoint_scope;
- if (compiler_stats_ != NULL) {
+ if (FLAG_compiler_stats) {
OS::Print("%s", compiler_stats()->PrintToZone());
}

Powered by Google App Engine
This is Rietveld 408576698