Change heap transitions + hspace compation to use VLOG(heap)
VLOG(gc) is spammy since it is enabled.
(cherry picked from commit 8bd2961b385c870953e650c253a04ee24b76809b)
Change-Id: Id75256cdc6a9802818bb56f77533cca88ace42a6
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index cd066fc..da08d36 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -1565,11 +1565,11 @@
count_performed_homogeneous_space_compaction_++;
// Print statics log and resume all threads.
uint64_t duration = NanoTime() - start_time;
- 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) /
- static_cast<double>(space_size_before_compaction);
+ VLOG(heap) << "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) /
+ static_cast<double>(space_size_before_compaction);
tl->ResumeAll();
// Finish GC.
reference_processor_.EnqueueClearedReferences(self);
@@ -1716,7 +1716,7 @@
} else {
saved_str = " expanded " + PrettySize(-delta_allocated);
}
- VLOG(gc) << "Heap transition to " << process_state_ << " took "
+ VLOG(heap) << "Heap transition to " << process_state_ << " took "
<< PrettyDuration(duration) << saved_str;
}