OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/metrics/histogram_samples.h" | 5 #include "base/metrics/histogram_samples.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 meta_->sum += diff; | 140 meta_->sum += diff; |
141 #endif | 141 #endif |
142 } | 142 } |
143 | 143 |
144 void HistogramSamples::IncreaseRedundantCount(HistogramBase::Count diff) { | 144 void HistogramSamples::IncreaseRedundantCount(HistogramBase::Count diff) { |
145 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, diff); | 145 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, diff); |
146 } | 146 } |
147 | 147 |
148 SampleCountIterator::~SampleCountIterator() {} | 148 SampleCountIterator::~SampleCountIterator() {} |
149 | 149 |
150 bool SampleCountIterator::GetBucketIndex(size_t* index) const { | 150 bool SampleCountIterator::GetBucketIndex(size_t* /*index*/) const { |
151 DCHECK(!Done()); | 151 DCHECK(!Done()); |
152 return false; | 152 return false; |
153 } | 153 } |
154 | 154 |
155 } // namespace base | 155 } // namespace base |
OLD | NEW |