Lines Matching full:counts
81 // Moves the single-sample value to a mounted "counts" array.
84 // Mounts (creating if necessary) an array of "counts" for multi-value
88 // Mounts "counts" storage that already exists. This does not attempt to move
93 // Creates "counts" storage and returns a span to it. The span's size must
94 // be the number of counts required by the histogram. Ownership of the
99 std::optional<span<HistogramBase::AtomicCount>> counts() { in counts() function
108 std::optional<span<const HistogramBase::AtomicCount>> counts() const { in counts() function
117 void set_counts(span<HistogramBase::AtomicCount> counts) const { in set_counts() argument
118 CHECK_EQ(counts.size(), counts_size_); in set_counts()
119 counts_data_.store(counts.data(), std::memory_order_release); in set_counts()
129 // Returns a reference into the `counts()` array. As `counts()` may be an
130 // empty optional until the array is populated, `counts()` must be checked for
133 return (counts().value())[index]; in counts_at()
136 return (counts().value())[index]; in counts_at()
142 // The number of counts in the histogram. Once `counts_data_` becomes
165 // A sample vector that uses local memory for the counts array.
202 // Simple local storage for counts.
206 // A sample vector that uses persistent memory for the counts array.
212 const DelayedPersistentAllocation& counts);
225 // Persistent storage for counts.