diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-12-17 14:56:47 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-12-17 16:03:58 -0800 |
commit | 70a596d61f8cf5b6447326c46c3386e0fbd5bfb5 (patch) | |
tree | f7affe0a976165eb9ff789270d314463f6e36660 /runtime/gc/collector | |
parent | e9231c0aecc013c61b6cf7f88a228204651d4d41 (diff) | |
download | art-70a596d61f8cf5b6447326c46c3386e0fbd5bfb5.zip art-70a596d61f8cf5b6447326c46c3386e0fbd5bfb5.tar.gz art-70a596d61f8cf5b6447326c46c3386e0fbd5bfb5.tar.bz2 |
Add thread suspend histogram
Helps measure time to suspend.
Example output (maps after a few seconds):
suspend all histogram: Sum: 2.806ms 99% C.I. 2us-1090.560us Avg: 43.843us Max: 1126us
Change-Id: I7bd9dd3b401fb3e3059e8718556d60910e541611
Diffstat (limited to 'runtime/gc/collector')
-rw-r--r-- | runtime/gc/collector/garbage_collector.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/collector/garbage_collector.cc b/runtime/gc/collector/garbage_collector.cc index 9e6a800..8be18be 100644 --- a/runtime/gc/collector/garbage_collector.cc +++ b/runtime/gc/collector/garbage_collector.cc @@ -102,7 +102,7 @@ void GarbageCollector::Run(GcCause gc_cause, bool clear_soft_references) { total_time_ns_ += current_iteration->GetDurationNs(); for (uint64_t pause_time : current_iteration->GetPauseTimes()) { MutexLock mu(self, pause_histogram_lock_); - pause_histogram_.AddValue(pause_time / 1000); + pause_histogram_.AdjustAndAddValue(pause_time); } ATRACE_END(); } |