commit | 8675fe13c41ac9ea1a3096d0c5f7e8beaf5e34cd | [log] [tgz] |
---|---|---|
author | Anwar Ghuloum <anwarg@google.com> | Fri Aug 16 23:02:03 2013 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Aug 16 23:02:03 2013 +0000 |
tree | 75aa4695af23d92ee46d67259158ab72d9061a27 | |
parent | 3eeda8fe5a481226b246d08e1c645f3ee3b48cf2 [diff] | |
parent | ba041a59071036d5c78b70a372739e90cf6fe6d4 [diff] |
Merge "Log long GC pause only when the process cares about pause time" into dalvik-dev
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index d5a8d75..0b91d78 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc
@@ -1239,7 +1239,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();