Add -verbose to dex2oat, and improve -verbose:monitor output.
Change-Id: Iec19eb45a600e80855d25a1a02d2351f628c3a1a
diff --git a/src/dex2oat.cc b/src/dex2oat.cc
index 16b303e..ad140ec 100644
--- a/src/dex2oat.cc
+++ b/src/dex2oat.cc
@@ -83,6 +83,7 @@
std::string host_prefix;
const char* Xms = NULL;
const char* Xmx = NULL;
+ const char* verbose = NULL;
for (int i = 0; i < argc; i++) {
const StringPiece option(argv[i]);
@@ -116,6 +117,8 @@
Xms = option.data();
} else if (option.starts_with("-Xmx")) {
Xmx = option.data();
+ } else if (option.starts_with("-verbose:")) {
+ verbose = option.data();
} else {
fprintf(stderr, "unknown argument %s\n", option.data());
usage();
@@ -164,6 +167,9 @@
if (Xmx != NULL) {
options.push_back(std::make_pair(Xmx, reinterpret_cast<void*>(NULL)));
}
+ if (verbose != NULL) {
+ options.push_back(std::make_pair(verbose, reinterpret_cast<void*>(NULL)));
+ }
if (!host_prefix.empty()) {
options.push_back(std::make_pair("host-prefix", host_prefix.c_str()));
}