summaryrefslogtreecommitdiffstats
path: root/runtime/base/histogram.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-06-17 15:04:40 -0700
committerMathieu Chartier <mathieuc@google.com>2014-06-17 15:43:14 -0700
commit19d46b44f2abe742be22e32908dbfd9e6dd9bfea (patch)
treec0027b328a57280afaad197189a3d58c73242bb4 /runtime/base/histogram.h
parent4fab5a1f9b34f558d1f4002de73e233d8a0d47b7 (diff)
downloadart-19d46b44f2abe742be22e32908dbfd9e6dd9bfea.tar.gz
art-19d46b44f2abe742be22e32908dbfd9e6dd9bfea.tar.bz2
art-19d46b44f2abe742be22e32908dbfd9e6dd9bfea.zip
Fix systrace logging, total paused time, and bytes saved message.
Moved the GC top level systrace logging to be inside of Collector::Run. This prevents cases where we forgot to call it such as background compaction. Fixed a unit error regarding total pause time. Fixed negative bytes saved to use the word "expanded". Bug: 15702709 Change-Id: Ic2991ecad2daa000d0aee9d559b8bc77d8c160aa
Diffstat (limited to 'runtime/base/histogram.h')
-rw-r--r--runtime/base/histogram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/base/histogram.h b/runtime/base/histogram.h
index a7d51e2078..1e12be8c3e 100644
--- a/runtime/base/histogram.h
+++ b/runtime/base/histogram.h
@@ -71,6 +71,10 @@ template <class Value> class Histogram {
return sum_;
}
+ Value AdjustedSum() const {
+ return sum_ * kAdjust;
+ }
+
Value Min() const {
return min_value_added_;
}