diff options
author | 2014-02-06 18:03:00 +0000 | |
---|---|---|
committer | 2014-02-06 18:03:00 +0000 | |
commit | 4c4f90c2d1776137e249c6720b83c81c09961dda (patch) | |
tree | ae6e2fb71719edef06e3da582d3233cc7f69f1ae | |
parent | 42c97a401ef96ea6aefb4c6d1972300f7fac1801 (diff) | |
parent | 65c23bbb25f069b3b49761468b848c4e5d1aa879 (diff) |
Merge "Restore end of dex2oat logging"
-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 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); } |