Lines Matching full:counts
18 // storage. Once the full counts storage is allocated, the single-sample must
39 if (!counts()) { in Accumulate()
46 // entries in the counts array so move the single-sample. in Accumulate()
47 if (counts()) in Accumulate()
59 subtle::NoBarrier_AtomicIncrement(&counts()[bucket_index], count); in Accumulate()
79 if (counts() || MountExistingCountsStorage()) { in TotalCount()
82 const HistogramBase::AtomicCount* counts_array = counts(); in TotalCount()
102 if (counts() || MountExistingCountsStorage()) in GetCountAtIndex()
103 return subtle::NoBarrier_Load(&counts()[bucket_index]); in GetCountAtIndex()
119 if (counts() || MountExistingCountsStorage()) { in Iterator()
120 return std::make_unique<SampleVectorIterator>(counts(), counts_size(), in Iterator()
162 // Single-value storage is possible if there is no counts storage and the in AddSubtractImpl()
164 if (!counts()) { in AddSubtractImpl()
170 // Handle race-condition that mounted counts storage between above and in AddSubtractImpl()
172 if (counts()) in AddSubtractImpl()
178 // The counts storage will be needed to hold the multiple incoming values. in AddSubtractImpl()
182 // Go through the iterator and add the counts into correct bucket. in AddSubtractImpl()
195 &counts()[dest_index], op == HistogramSamples::ADD ? count : -count); in AddSubtractImpl()
243 DCHECK(counts()); in MoveSingleSampleToCounts()
245 // Disable the single-sample since there is now counts storage for the data. in MoveSingleSampleToCounts()
255 subtle::NoBarrier_AtomicIncrement(&counts()[sample.bucket], sample.count); in MoveSingleSampleToCounts()
268 // Create the actual counts storage while the above lock is acquired. in MountCountsStorageAndMoveSingleSample()
269 HistogramBase::Count* counts = CreateCountsStorageWhileLocked(); in MountCountsStorageAndMoveSingleSample() local
270 DCHECK(counts); in MountCountsStorageAndMoveSingleSample()
277 set_counts(counts); in MountCountsStorageAndMoveSingleSample()
297 return counts() != nullptr; in MountExistingCountsStorage()
309 const DelayedPersistentAllocation& counts) in PersistentSampleVector() argument
310 : SampleVectorBase(id, meta, bucket_ranges), persistent_counts_(counts) { in PersistentSampleVector()
333 // There is no early exit if counts is not yet mounted because, given that in MountExistingCountsStorage()
342 // Mount the counts array in position. in MountExistingCountsStorage()
347 return counts() != nullptr; in MountExistingCountsStorage()
365 const std::vector<HistogramBase::AtomicCount>* counts, in SampleVectorIterator() argument
367 : counts_(&(*counts)[0]), in SampleVectorIterator()
368 counts_size_(counts->size()), in SampleVectorIterator()
376 const HistogramBase::AtomicCount* counts, in SampleVectorIterator() argument
379 : counts_(counts), in SampleVectorIterator()