summaryrefslogtreecommitdiffstats
path: root/dex2oat
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-02-01 22:12:39 -0800
committerBrian Carlstrom <bdc@google.com>2014-02-05 22:43:54 -0800
commit65c23bbb25f069b3b49761468b848c4e5d1aa879 (patch)
tree33c310ff2476776926ff2287c692e5b135c7f841 /dex2oat
parent1dcff62155e8477eb114c8a86eb1beb0797ffc11 (diff)
downloadart-65c23bbb25f069b3b49761468b848c4e5d1aa879.tar.gz
art-65c23bbb25f069b3b49761468b848c4e5d1aa879.tar.bz2
art-65c23bbb25f069b3b49761468b848c4e5d1aa879.zip
Restore end of dex2oat logging
Change-Id: I808cc60e8bb84609f42c0262b10fa0f1b4962763
Diffstat (limited to 'dex2oat')
-rw-r--r--dex2oat/dex2oat.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index 97df199be9..582a0e9051 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -180,7 +180,11 @@ class Dex2Oat {
~Dex2Oat() {
delete runtime_;
- VLOG(compiler) << "dex2oat took " << PrettyDuration(NanoTime() - start_ns_)
+ LogCompletionTime();
+ }
+
+ void LogCompletionTime() {
+ LOG(INFO) << "dex2oat took " << PrettyDuration(NanoTime() - start_ns_)
<< " (threads: " << thread_count_ << ")";
}
@@ -1189,6 +1193,7 @@ static int dex2oat(int argc, char** argv) {
// Everything was successfully written, do an explicit exit here to avoid running Runtime
// destructors that take time (bug 10645725) unless we're a debug build or running on valgrind.
if (!kIsDebugBuild || (RUNNING_ON_VALGRIND == 0)) {
+ dex2oat->LogCompletionTime();
exit(EXIT_SUCCESS);
}