Home
last modified time | relevance | path

Searched refs:HistogramSamples (Results 1 – 25 of 35) sorted by relevance

12

/external/libchrome/base/metrics/
Dhistogram_samples.cc78 static_assert(sizeof(HistogramSamples::AtomicSingleSample) ==
82 HistogramSamples::SingleSample HistogramSamples::AtomicSingleSample::Load() in Load()
93 HistogramSamples::SingleSample HistogramSamples::AtomicSingleSample::Extract( in Extract()
102 bool HistogramSamples::AtomicSingleSample::Accumulate( in Accumulate()
168 bool HistogramSamples::AtomicSingleSample::IsDisabled() const { in IsDisabled()
172 HistogramSamples::LocalMetadata::LocalMetadata() { in LocalMetadata()
178 HistogramSamples::HistogramSamples(uint64_t id, Metadata* meta) in HistogramSamples() function in base::HistogramSamples
190 HistogramSamples::~HistogramSamples() = default;
192 void HistogramSamples::Add(const HistogramSamples& other) { in Add()
199 bool HistogramSamples::AddFromPickle(PickleIterator* iter) { in AddFromPickle()
[all …]
Dsparse_histogram.h23 class HistogramSamples; variable
39 HistogramSamples::Metadata* meta,
40 HistogramSamples::Metadata* logged_meta);
52 void AddSamples(const HistogramSamples& samples) override;
54 std::unique_ptr<HistogramSamples> SnapshotSamples() const override;
55 std::unique_ptr<HistogramSamples> SnapshotDelta() override;
56 std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const override;
70 HistogramSamples::Metadata* meta,
71 HistogramSamples::Metadata* logged_meta);
100 std::unique_ptr<HistogramSamples> unlogged_samples_;
[all …]
Dhistogram.h162 HistogramSamples::Metadata* meta,
163 HistogramSamples::Metadata* logged_meta);
184 uint32_t FindCorruption(const HistogramSamples& samples) const override;
215 std::unique_ptr<HistogramSamples> SnapshotSamples() const override;
216 std::unique_ptr<HistogramSamples> SnapshotDelta() override;
217 std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const override;
218 void AddSamples(const HistogramSamples& samples) override;
254 HistogramSamples::Metadata* meta,
255 HistogramSamples::Metadata* logged_meta);
381 HistogramSamples::Metadata* meta,
[all …]
Dsparse_histogram_unittest.cc95 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P()
100 std::unique_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_P()
106 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P()
114 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P()
119 std::unique_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_P()
125 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P()
133 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P()
138 std::unique_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_P()
144 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P()
155 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P()
[all …]
Ddummy_histogram.cc36 class DummyHistogramSamples : public HistogramSamples {
38 explicit DummyHistogramSamples() : HistogramSamples(0, new LocalMetadata()) {} in DummyHistogramSamples()
90 std::unique_ptr<HistogramSamples> DummyHistogram::SnapshotSamples() const { in SnapshotSamples()
94 std::unique_ptr<HistogramSamples> DummyHistogram::SnapshotDelta() { in SnapshotDelta()
98 std::unique_ptr<HistogramSamples> DummyHistogram::SnapshotFinalDelta() const { in SnapshotFinalDelta()
Dsparse_histogram.cc82 HistogramSamples::Metadata* meta, in PersistentCreate()
83 HistogramSamples::Metadata* logged_meta) { in PersistentCreate()
123 std::unique_ptr<HistogramSamples> SparseHistogram::SnapshotSamples() const { in SnapshotSamples()
132 std::unique_ptr<HistogramSamples> SparseHistogram::SnapshotDelta() { in SnapshotDelta()
144 std::unique_ptr<HistogramSamples> SparseHistogram::SnapshotFinalDelta() const { in SnapshotFinalDelta()
155 void SparseHistogram::AddSamples(const HistogramSamples& samples) { in AddSamples()
187 HistogramSamples::Metadata* meta, in SparseHistogram()
188 HistogramSamples::Metadata* logged_meta) in SparseHistogram()
233 std::unique_ptr<HistogramSamples> snapshot = SnapshotSamples(); in WriteAsciiImpl()
Dhistogram_base.h26 class HistogramSamples; variable
202 virtual void AddSamples(const HistogramSamples& samples) = 0;
212 virtual uint32_t FindCorruption(const HistogramSamples& samples) const;
219 virtual std::unique_ptr<HistogramSamples> SnapshotSamples() const = 0;
224 virtual std::unique_ptr<HistogramSamples> SnapshotDelta() = 0;
233 virtual std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const = 0;
Dhistogram_samples.h35 class BASE_EXPORT HistogramSamples {
131 HistogramSamples(uint64_t id, Metadata* meta);
132 virtual ~HistogramSamples();
139 virtual void Add(const HistogramSamples& other);
144 virtual void Subtract(const HistogramSamples& other);
207 DISALLOW_COPY_AND_ASSIGN(HistogramSamples);
Ddummy_histogram.h34 void AddSamples(const HistogramSamples& samples) override {} in AddSamples()
36 std::unique_ptr<HistogramSamples> SnapshotSamples() const override;
37 std::unique_ptr<HistogramSamples> SnapshotDelta() override;
38 std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const override;
Dpersistent_sample_map_unittest.cc34 HistogramSamples::LocalMetadata meta; in TEST()
51 HistogramSamples::LocalMetadata meta; in TEST()
68 HistogramSamples::LocalMetadata meta1; in TEST()
76 HistogramSamples::LocalMetadata meta2; in TEST()
104 HistogramSamples::LocalMetadata meta12; in TEST()
157 HistogramSamples::LocalMetadata meta; in TEST()
195 HistogramSamples::LocalMetadata meta1; in TEST()
205 HistogramSamples::LocalMetadata meta2; in TEST()
240 HistogramSamples::LocalMetadata meta; in TEST()
Dhistogram.cc314 HistogramSamples::Metadata* meta, in PersistentCreate()
315 HistogramSamples::Metadata* logged_meta) { in PersistentCreate()
362 uint32_t Histogram::FindCorruption(const HistogramSamples& samples) const { in FindCorruption()
509 std::unique_ptr<HistogramSamples> Histogram::SnapshotSamples() const { in SnapshotSamples()
513 std::unique_ptr<HistogramSamples> Histogram::SnapshotDelta() { in SnapshotDelta()
530 std::unique_ptr<HistogramSamples> snapshot = SnapshotUnloggedSamples(); in SnapshotDelta()
537 std::unique_ptr<HistogramSamples> Histogram::SnapshotFinalDelta() const { in SnapshotFinalDelta()
546 void Histogram::AddSamples(const HistogramSamples& samples) { in AddSamples()
601 HistogramSamples::Metadata* meta, in Histogram()
602 HistogramSamples::Metadata* logged_meta) in Histogram()
[all …]
Dhistogram_flattener.h16 class HistogramSamples; variable
23 const HistogramSamples& snapshot) = 0;
Dhistogram_snapshot_manager.h21 class HistogramSamples; variable
69 std::unique_ptr<HistogramSamples> samples);
Dhistogram_delta_serialization_unittest.cc38 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST()
48 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST()
Dhistogram_base_unittest.cc167 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_F()
182 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_F()
209 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_F()
254 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_F()
Dhistogram_unittest.cc165 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P()
179 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P()
208 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P()
385 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P()
393 std::unique_ptr<HistogramSamples> samples2 = histogram->SnapshotSamples(); in TEST_P()
408 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P()
416 std::unique_ptr<HistogramSamples> samples2 = histogram->SnapshotSamples(); in TEST_P()
437 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P()
549 std::unique_ptr<HistogramSamples> snapshot = histogram->SnapshotSamples(); in TEST_P()
Dsample_vector.cc29 : HistogramSamples(id, meta), bucket_ranges_(bucket_ranges) { in SampleVectorBase()
129 HistogramSamples::Operator op) { in AddSubtractImpl()
169 dest_index, op == HistogramSamples::ADD ? count : -count)) { in AddSubtractImpl()
195 &counts()[dest_index], op == HistogramSamples::ADD ? count : -count); in AddSubtractImpl()
Dhistogram_samples_unittest.cc14 using SingleSample = HistogramSamples::SingleSample;
15 using AtomicSingleSample = HistogramSamples::AtomicSingleSample;
Dsample_map.cc82 SampleMap::SampleMap(uint64_t id) : HistogramSamples(id, new LocalMetadata()) {} in SampleMap()
121 sample_counts_[min] += (op == HistogramSamples::ADD) ? count : -count; in AddSubtractImpl()
Dsample_vector.h30 class BASE_EXPORT SampleVectorBase : public HistogramSamples {
53 HistogramSamples::Operator op) override; // |op| is ADD or SUBTRACT.
Dpersistent_sample_map.cc104 : HistogramSamples(id, meta), allocator_(allocator) {} in PersistentSampleMap()
207 (op == HistogramSamples::ADD) ? count : -count; in AddSubtractImpl()
Dhistogram_delta_serialization.h46 const HistogramSamples& snapshot) override;
Dsample_map.h25 class BASE_EXPORT SampleMap : public HistogramSamples {
/external/libchrome/base/test/metrics/
Dhistogram_tester.cc41 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in ExpectUniqueSample()
56 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in ExpectBucketCount()
65 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in ExpectTotalCount()
82 std::unique_ptr<HistogramSamples> snapshot = in GetAllSamples()
103 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in GetBucketCount()
112 const HistogramSamples& samples, in GetBucketCountForSamples()
134 std::unique_ptr<HistogramSamples> new_samples = in GetTotalCountsForPrefix()
144 std::unique_ptr<HistogramSamples>
155 return std::unique_ptr<HistogramSamples>( in GetHistogramSamplesSinceCreation()
158 std::unique_ptr<HistogramSamples> named_samples = in GetHistogramSamplesSinceCreation()
[all …]
Dhistogram_tester.h23 class HistogramSamples; variable
126 std::unique_ptr<HistogramSamples> GetHistogramSamplesSinceCreation(
141 const HistogramSamples& samples) const;
148 const HistogramSamples& samples) const;
155 const HistogramSamples& samples,
160 std::map<std::string, std::unique_ptr<HistogramSamples>> histograms_snapshot_;

12