diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-11-20 17:26:00 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-11-21 12:02:28 -0800 |
commit | b2f9936cab87a187f078187c22d9b29d4a188a62 (patch) | |
tree | 601a1673d4c4aca428d69dff29a80c8f10cad214 /runtime/base | |
parent | dcc5c7598d38fcb555266c8618df720acea3b954 (diff) | |
download | art-b2f9936cab87a187f078187c22d9b29d4a188a62.zip art-b2f9936cab87a187f078187c22d9b29d4a188a62.tar.gz art-b2f9936cab87a187f078187c22d9b29d4a188a62.tar.bz2 |
Add histogram for GC pause times.
Printed when you dump the GC performance info.
Bug: 10855285
Change-Id: I3bf7f958305f97c52cb31c03bdd6218c321575b9
Diffstat (limited to 'runtime/base')
-rw-r--r-- | runtime/base/histogram-inl.h | 3 | ||||
-rw-r--r-- | runtime/base/histogram.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/base/histogram-inl.h b/runtime/base/histogram-inl.h index 4cd68cd..7c09999 100644 --- a/runtime/base/histogram-inl.h +++ b/runtime/base/histogram-inl.h @@ -178,7 +178,8 @@ inline void Histogram<Value>::PrintConfidenceIntervals(std::ostream &os, double os << FormatDuration(Max() * kAdjust, unit) << "\n"; } -template <class Value> inline void Histogram<Value>::CreateHistogram(CumulativeData* out_data) { +template <class Value> +inline void Histogram<Value>::CreateHistogram(CumulativeData* out_data) const { DCHECK_GT(sample_size_, 0ull); out_data->freq_.clear(); out_data->perc_.clear(); diff --git a/runtime/base/histogram.h b/runtime/base/histogram.h index d4eb1f4..4e5d29a 100644 --- a/runtime/base/histogram.h +++ b/runtime/base/histogram.h @@ -49,7 +49,7 @@ template <class Value> class Histogram { // cumulative_freq[i] = sum(frequency[j] : 0 < j < i ) // Accumulative summation of percentiles; which is the frequency / SampleSize // cumulative_perc[i] = sum(frequency[j] / SampleSize : 0 < j < i ) - void CreateHistogram(CumulativeData* data); + void CreateHistogram(CumulativeData* data) const; // Reset the cumulative values, next time CreateHistogram is called it will recreate the cache. void Reset(); double Mean() const; |