From: Mathieu Chartier Date: Tue, 2 Sep 2014 19:33:25 +0000 (-0700) Subject: Change heap transitions + hspace compation to use VLOG(heap) X-Git-Tag: android-x86-6.0-r1~145^2~2^2~247 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8bd2961b;p=android-x86%2Fart.git Change heap transitions + hspace compation to use VLOG(heap) VLOG(gc) is spammy since it is enabled. Change-Id: I07d1d40e2f19134f885d6777b60533a9010ae164 --- diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index 90ab3233f..8d614e1b7 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc @@ -1580,11 +1580,11 @@ HomogeneousSpaceCompactResult Heap::PerformHomogeneousSpaceCompact() { 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(space_size_after_compaction) / - static_cast(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(space_size_after_compaction) / + static_cast(space_size_before_compaction); tl->ResumeAll(); // Finish GC. reference_processor_.EnqueueClearedReferences(self); @@ -1731,7 +1731,7 @@ void Heap::TransitionCollector(CollectorType collector_type) { } 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; }