Make compiler stat dumping easier to use.
Previous needed -verbose:compiler + a debug build. Now specify --dump-stats to
dex2oat.
Change-Id: Ifde379e7cd06bbb0fe20149ce89c3b3789221eac
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index 056be1f..7c4a6ce 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -64,7 +64,7 @@
if (x == 0 && y == 0) {
return;
}
- VLOG(compiler) << Percentage(x, y) << "% of " << str << " for " << (x + y) << " cases";
+ LOG(INFO) << Percentage(x, y) << "% of " << str << " for " << (x + y) << " cases";
}
class AOTCompilationStats {
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index c4cce2f..d5d1303 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -604,7 +604,7 @@
#error "Unsupported architecture"
#endif
bool is_host = false;
- bool dump_stats = kIsDebugBuild;
+ bool dump_stats = false;
bool dump_timing = false;
bool dump_slow_timing = kIsDebugBuild;
bool watch_dog_enabled = !kIsTargetBuild;
@@ -696,6 +696,8 @@
runtime_args.push_back(argv[i]);
} else if (option == "--dump-timing") {
dump_timing = true;
+ } else if (option == "--dump-stats") {
+ dump_stats = true;
} else {
Usage("Unknown argument %s", option.data());
}