diff options
author | Brian Carlstrom <bdc@google.com> | 2014-02-01 22:12:39 -0800 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2014-02-05 22:43:54 -0800 |
commit | 65c23bbb25f069b3b49761468b848c4e5d1aa879 (patch) | |
tree | 33c310ff2476776926ff2287c692e5b135c7f841 | |
parent | 1dcff62155e8477eb114c8a86eb1beb0797ffc11 (diff) | |
download | art-65c23bbb25f069b3b49761468b848c4e5d1aa879.zip art-65c23bbb25f069b3b49761468b848c4e5d1aa879.tar.gz art-65c23bbb25f069b3b49761468b848c4e5d1aa879.tar.bz2 |
Restore end of dex2oat logging
Change-Id: I808cc60e8bb84609f42c0262b10fa0f1b4962763
-rw-r--r-- | dex2oat/dex2oat.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index 97df199..582a0e9 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); } |