OSDN Git Service

Change heap transitions + hspace compation to use VLOG(heap)
authorMathieu Chartier <mathieuc@google.com>
Tue, 2 Sep 2014 19:33:25 +0000 (12:33 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 2 Sep 2014 19:34:05 +0000 (12:34 -0700)
VLOG(gc) is spammy since it is enabled.

Change-Id: I07d1d40e2f19134f885d6777b60533a9010ae164

runtime/gc/heap.cc

index 90ab323..8d614e1 100644 (file)
@@ -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<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);
@@ -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;
 }