diff options
| author | 2013-08-16 13:05:05 -0700 | |
|---|---|---|
| committer | 2013-08-16 13:05:05 -0700 | |
| commit | ba041a59071036d5c78b70a372739e90cf6fe6d4 (patch) | |
| tree | f85b66529f185c05b77bcb9cdf2825e1d36685b9 | |
| parent | 212ec8f32919d50a1e1cb7ea4b3b91ca938ae4e6 (diff) | |
Log long GC pause only when the process cares about pause time
Change-Id: Iffdb83dff43020c3477b5391deb04102e00eb61e
| -rw-r--r-- | runtime/gc/heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc index a2453b8405..b4d149097a 100644 --- a/runtime/gc/heap.cc +++ b/runtime/gc/heap.cc @@ -1268,7 +1268,7 @@ collector::GcType Heap::CollectGarbageInternal(collector::GcType gc_type, GcCaus } } - 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(); |