diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-08-07 23:30:01 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-08-07 23:30:01 -0700 |
commit | f91bdf9c194381a3d346bd6420afcabd863f134c (patch) | |
tree | dbeb71270c1ce422fb880b26d8fe741e3efc08e4 /runtime/base | |
parent | 3839f7a4d482049cfb8d5a0a9e955e7ede27e1d3 (diff) | |
parent | e0a53e99e2a01f8668d6616c3cec7e2f5a711286 (diff) | |
download | art-f91bdf9c194381a3d346bd6420afcabd863f134c.zip art-f91bdf9c194381a3d346bd6420afcabd863f134c.tar.gz art-f91bdf9c194381a3d346bd6420afcabd863f134c.tar.bz2 |
am e0a53e99: Add low memory mode option to ART.
* commit 'e0a53e99e2a01f8668d6616c3cec7e2f5a711286':
Add low memory mode option to ART.
Diffstat (limited to 'runtime/base')
-rw-r--r-- | runtime/base/timing_logger.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/base/timing_logger.cc b/runtime/base/timing_logger.cc index e2d2d4c..b58b0ac 100644 --- a/runtime/base/timing_logger.cc +++ b/runtime/base/timing_logger.cc @@ -113,7 +113,8 @@ void CumulativeLogger::AddPair(const std::string &label, uint64_t delta_time) { // Convert delta time to microseconds so that we don't overflow our counters. delta_time /= kAdjust; if (histograms_.size() <= index_) { - histograms_.push_back(new Histogram<uint64_t>(label.c_str(), 50)); + const size_t max_buckets = Runtime::Current()->GetHeap()->IsLowMemoryMode() ? 16 : 100; + histograms_.push_back(new Histogram<uint64_t>(label.c_str(), 50, max_buckets)); DCHECK_GT(histograms_.size(), index_); } histograms_[index_]->AddValue(delta_time); |