Reduce GC log spam.
Homogeneous compaction and collector transitions now print to
VLOG(gc) instead of LOG(INFO).
Bug: 17166556
(cherry picked from commit 0ab56e95e203806dae347056d3331a3e6037457d)
Change-Id: I33157ca27da86cbb741759bb0bda6d38d1f5bfcd
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index 82d5830..e857b25 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -1568,7 +1568,7 @@
count_performed_homogeneous_space_compaction_++;
// Print statics log and resume all threads.
uint64_t duration = NanoTime() - start_time;
- LOG(INFO) << "Heap homogeneous space compaction took " << PrettyDuration(duration) << " size: "
+ VLOG(gc) << "Heap homogeneous space compaction took " << PrettyDuration(duration) << " size: "
<< PrettySize(space_size_before_compaction) << " -> "
<< PrettySize(space_size_after_compaction) << " compact-ratio: "
<< std::fixed << static_cast<double>(space_size_after_compaction) /
@@ -1719,7 +1719,7 @@
} else {
saved_str = " expanded " + PrettySize(-delta_allocated);
}
- LOG(INFO) << "Heap transition to " << process_state_ << " took "
+ VLOG(gc) << "Heap transition to " << process_state_ << " took "
<< PrettyDuration(duration) << saved_str;
}