commit | ba041a59071036d5c78b70a372739e90cf6fe6d4 | [log] [tgz] |
---|---|---|
author | Anwar Ghuloum <anwarg@google.com> | Fri Aug 16 13:05:05 2013 -0700 |
committer | Anwar Ghuloum <anwarg@google.com> | Fri Aug 16 13:05:05 2013 -0700 |
tree | f85b66529f185c05b77bcb9cdf2825e1d36685b9 | |
parent | 212ec8f32919d50a1e1cb7ea4b3b91ca938ae4e6 [diff] |
Log long GC pause only when the process cares about pause time Change-Id: Iffdb83dff43020c3477b5391deb04102e00eb61e
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index a2453b8..b4d1490 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc
@@ -1268,7 +1268,7 @@ } } - if (was_slow) { + if (was_slow && care_about_pause_times_) { const size_t percent_free = GetPercentFree(); const size_t current_heap_size = GetBytesAllocated(); const size_t total_memory = GetTotalMemory();