summaryrefslogtreecommitdiffstats
path: root/runtime/base/histogram.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-11-20 14:07:54 -0800
committerMathieu Chartier <mathieuc@google.com>2013-11-20 15:28:24 -0800
commit19b0a913d9127a70ca35ebae166312bc6eee3196 (patch)
treed41786c6425a535f37aa90fc1f4621b24793eb6c /runtime/base/histogram.h
parent1febddf359ae500ef1bb01ab4883b076fcb56440 (diff)
downloadart-19b0a913d9127a70ca35ebae166312bc6eee3196.zip
art-19b0a913d9127a70ca35ebae166312bc6eee3196.tar.gz
art-19b0a913d9127a70ca35ebae166312bc6eee3196.tar.bz2
Improve histogram and timing logger dumping.
We now dump the sum (total time) of each histogram as well as previous stats. This is useful for the GC since the same split can occur multiple times per GC iteration. Also did a few memory optimizations by changing the map in the cumulative loggers to be a set. Bug: 11789200 Change-Id: I67bcc5384200924c8dc5d9eebcff077ce72b7e57
Diffstat (limited to 'runtime/base/histogram.h')
-rw-r--r--runtime/base/histogram.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/base/histogram.h b/runtime/base/histogram.h
index e22b6e1..d4eb1f4 100644
--- a/runtime/base/histogram.h
+++ b/runtime/base/histogram.h
@@ -40,6 +40,8 @@ template <class Value> class Histogram {
std::vector<double> perc_;
};
+ // Used for name based comparators in the timing loggers.
+ explicit Histogram(const char* name);
Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100);
void AddValue(Value);
// Builds the cumulative distribution function from the frequency data.