diff options
author | Andreas Gampe <agampe@google.com> | 2015-01-20 16:17:19 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-01-20 16:17:19 -0800 |
commit | dc84301712f55ec3ad9a20c5a081e62e7d2441dd (patch) | |
tree | 477296411e7fc8a5c35acb450c5d1a6e9136c32b | |
parent | e355ab6374e546bcd388a7d54b67d3df493fdadb (diff) | |
download | android_art-dc84301712f55ec3ad9a20c5a081e62e7d2441dd.tar.gz android_art-dc84301712f55ec3ad9a20c5a081e62e7d2441dd.tar.bz2 android_art-dc84301712f55ec3ad9a20c5a081e62e7d2441dd.zip |
ART: Make ProcessStrings less noisy
Only print statistics in debug mode or when verbose-logging.
Bug: 19082662
Change-Id: Ibc1d336a5abe7a05fb37e8d3a9b9c9c8131e5bbc
-rw-r--r-- | compiler/image_writer.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc index 8c7d611d85..dfebd3e628 100644 --- a/compiler/image_writer.cc +++ b/compiler/image_writer.cc @@ -561,8 +561,10 @@ void ImageWriter::ProcessStrings() { } CHECK_EQ(pos, num_chars); - LOG(INFO) << "Total # image strings=" << total_strings << " combined length=" - << num_chars << " prefix saved chars=" << prefix_saved_chars; + if (kIsDebugBuild || VLOG_IS_ON(compiler)) { + LOG(INFO) << "Total # image strings=" << total_strings << " combined length=" + << num_chars << " prefix saved chars=" << prefix_saved_chars; + } ComputeEagerResolvedStrings(); } |