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

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: mmmmmmerge 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
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 87ab7eb1e1eac09388d0032441997c3381beb942..068f5e2b87f4d16dcc27189bc8bd2462f6392a5e 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -845,9 +845,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. Shutdown and delete the isolate on failure.
@@ -1479,7 +1482,7 @@ void Isolate::LowLevelShutdown() {
HandleScope handle_scope(thread);
NoSafepointScope no_safepoint_scope;
- if (compiler_stats_ != NULL) {
+ if (FLAG_compiler_stats) {
OS::Print("%s", compiler_stats()->PrintToZone());
}
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698