Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: base/metrics/persistent_sample_map.cc

Issue 2811713003: Embed a single sample in histogram metadata. (Closed)
Patch Set: rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/persistent_histogram_allocator.cc ('k') | base/metrics/sample_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/persistent_sample_map.cc
diff --git a/base/metrics/persistent_sample_map.cc b/base/metrics/persistent_sample_map.cc
index f931fd579c3ef71edebc1f8a81fc133f35afd7d2..dd5b8320c16dafafb49d74057883503af3e3fbaa 100644
--- a/base/metrics/persistent_sample_map.cc
+++ b/base/metrics/persistent_sample_map.cc
@@ -118,8 +118,7 @@ PersistentSampleMap::~PersistentSampleMap() {
void PersistentSampleMap::Accumulate(Sample value, Count count) {
*GetOrCreateSampleCountStorage(value) += count;
- IncreaseSum(static_cast<int64_t>(count) * value);
- IncreaseRedundantCount(count);
+ IncreaseSumAndCount(static_cast<int64_t>(count) * value, count);
}
Count PersistentSampleMap::GetCount(Sample value) const {
« no previous file with comments | « base/metrics/persistent_histogram_allocator.cc ('k') | base/metrics/sample_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698