Home
last modified time | relevance | path

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

12

/external/libchrome/base/metrics/
Dhistogram_samples.cc68 HistogramSamples::HistogramSamples(uint64_t id) in HistogramSamples() function in base::HistogramSamples
73 HistogramSamples::HistogramSamples(uint64_t id, Metadata* meta) in HistogramSamples() function in base::HistogramSamples
83 HistogramSamples::~HistogramSamples() {} in ~HistogramSamples()
85 void HistogramSamples::Add(const HistogramSamples& other) { in Add()
93 bool HistogramSamples::AddFromPickle(PickleIterator* iter) { in AddFromPickle()
108 void HistogramSamples::Subtract(const HistogramSamples& other) { in Subtract()
116 bool HistogramSamples::Serialize(Pickle* pickle) const { in Serialize()
136 void HistogramSamples::IncreaseSum(int64_t diff) { in IncreaseSum()
144 void HistogramSamples::IncreaseRedundantCount(HistogramBase::Count diff) { in IncreaseRedundantCount()
Dsparse_histogram.h53 class HistogramSamples; variable
67 HistogramSamples::Metadata* meta,
68 HistogramSamples::Metadata* logged_meta);
80 void AddSamples(const HistogramSamples& samples) override;
82 std::unique_ptr<HistogramSamples> SnapshotSamples() const override;
83 std::unique_ptr<HistogramSamples> SnapshotDelta() override;
84 std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const override;
98 HistogramSamples::Metadata* meta,
99 HistogramSamples::Metadata* logged_meta);
128 std::unique_ptr<HistogramSamples> samples_;
[all …]
Dhistogram.h153 HistogramSamples::Metadata* meta,
154 HistogramSamples::Metadata* logged_meta);
175 uint32_t FindCorruption(const HistogramSamples& samples) const override;
205 std::unique_ptr<HistogramSamples> SnapshotSamples() const override;
206 std::unique_ptr<HistogramSamples> SnapshotDelta() override;
207 std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const override;
208 void AddSamples(const HistogramSamples& samples) override;
241 HistogramSamples::Metadata* meta,
242 HistogramSamples::Metadata* logged_meta);
315 std::unique_ptr<HistogramSamples> logged_samples_;
[all …]
Dhistogram_samples.h27 class BASE_EXPORT HistogramSamples {
61 explicit HistogramSamples(uint64_t id);
62 HistogramSamples(uint64_t id, Metadata* meta);
63 virtual ~HistogramSamples();
70 virtual void Add(const HistogramSamples& other);
75 virtual void Subtract(const HistogramSamples& other);
108 DISALLOW_COPY_AND_ASSIGN(HistogramSamples);
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()
170 std::unique_ptr<HistogramSamples> samples = in TEST_P()
[all …]
Dsparse_histogram.cc79 HistogramSamples::Metadata* meta, in PersistentCreate()
80 HistogramSamples::Metadata* logged_meta) { in PersistentCreate()
120 std::unique_ptr<HistogramSamples> SparseHistogram::SnapshotSamples() const { in SnapshotSamples()
128 std::unique_ptr<HistogramSamples> SparseHistogram::SnapshotDelta() { in SnapshotDelta()
141 std::unique_ptr<HistogramSamples> SparseHistogram::SnapshotFinalDelta() const { in SnapshotFinalDelta()
154 void SparseHistogram::AddSamples(const HistogramSamples& samples) { in AddSamples()
185 HistogramSamples::Metadata* meta, in SparseHistogram()
186 HistogramSamples::Metadata* logged_meta) in SparseHistogram()
230 std::unique_ptr<HistogramSamples> snapshot = SnapshotSamples(); in WriteAsciiImpl()
Dhistogram_base.h27 class HistogramSamples; variable
180 virtual void AddSamples(const HistogramSamples& samples) = 0;
190 virtual uint32_t FindCorruption(const HistogramSamples& samples) const;
194 virtual std::unique_ptr<HistogramSamples> SnapshotSamples() const = 0;
199 virtual std::unique_ptr<HistogramSamples> SnapshotDelta() = 0;
208 virtual std::unique_ptr<HistogramSamples> SnapshotFinalDelta() const = 0;
Dhistogram_snapshot_manager.h20 class HistogramSamples; variable
76 std::unique_ptr<HistogramSamples> samples);
80 const HistogramSamples& new_snapshot,
81 HistogramSamples* logged_samples);
Dpersistent_sample_map_unittest.cc33 HistogramSamples::Metadata meta; in TEST()
50 HistogramSamples::Metadata meta; in TEST()
67 HistogramSamples::Metadata meta1; in TEST()
75 HistogramSamples::Metadata meta2; in TEST()
103 HistogramSamples::Metadata meta12; in TEST()
156 HistogramSamples::Metadata meta; in TEST()
194 HistogramSamples::Metadata meta1; in TEST()
204 HistogramSamples::Metadata meta2; in TEST()
241 HistogramSamples::Metadata meta; in TEST()
Dhistogram.cc282 HistogramSamples::Metadata* meta, in PersistentCreate()
283 HistogramSamples::Metadata* logged_meta) { in PersistentCreate()
331 uint32_t Histogram::FindCorruption(const HistogramSamples& samples) const { in FindCorruption()
437 std::unique_ptr<HistogramSamples> Histogram::SnapshotSamples() const { in SnapshotSamples()
441 std::unique_ptr<HistogramSamples> Histogram::SnapshotDelta() { in SnapshotDelta()
444 std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector(); in SnapshotDelta()
458 std::unique_ptr<HistogramSamples> Histogram::SnapshotFinalDelta() const { in SnapshotFinalDelta()
462 std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector(); in SnapshotFinalDelta()
470 void Histogram::AddSamples(const HistogramSamples& samples) { in AddSamples()
519 HistogramSamples::Metadata* meta, in Histogram()
[all …]
Dhistogram_snapshot_manager.cc37 std::unique_ptr<HistogramSamples> samples) { in PrepareSamples()
93 const HistogramSamples& new_snapshot, in InspectLoggedSamplesInconsistency()
94 HistogramSamples* logged_samples) { in InspectLoggedSamplesInconsistency()
Dhistogram_flattener.h16 class HistogramSamples; variable
25 const HistogramSamples& snapshot) = 0;
Dsample_vector.cc19 : HistogramSamples(id), in SampleVector()
32 : HistogramSamples(id, meta), in SampleVector()
73 HistogramSamples::Operator op) { in AddSubtractImpl()
86 &counts_[index], op == HistogramSamples::ADD ? count : -count); in AddSubtractImpl()
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_unittest.cc145 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P()
159 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P()
188 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P()
365 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P()
373 std::unique_ptr<HistogramSamples> samples2 = histogram->SnapshotSamples(); in TEST_P()
388 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P()
396 std::unique_ptr<HistogramSamples> samples2 = histogram->SnapshotSamples(); in TEST_P()
509 std::unique_ptr<HistogramSamples> snapshot = histogram->SnapshotSamples(); in TEST_P()
Dsample_vector.h27 class BASE_EXPORT SampleVector : public HistogramSamples {
51 HistogramSamples::Operator op) override; // |op| is ADD or SUBTRACT.
Dsample_map.cc81 SampleMap::SampleMap(uint64_t id) : HistogramSamples(id) {} in SampleMap()
119 sample_counts_[min] += (op == HistogramSamples::ADD) ? count : -count; in AddSubtractImpl()
Dsample_map.h25 class BASE_EXPORT SampleMap : public HistogramSamples {
Dpersistent_sample_map.cc99 : HistogramSamples(id, meta), allocator_(allocator) {} in PersistentSampleMap()
190 (op == HistogramSamples::ADD) ? count : -count; in AddSubtractImpl()
Dhistogram_delta_serialization.h46 const HistogramSamples& snapshot) override;
Dpersistent_sample_map.h31 class BASE_EXPORT PersistentSampleMap : public HistogramSamples {
Dhistogram_delta_serialization.cc91 const HistogramSamples& snapshot) { in RecordDelta()
Dhistogram_snapshot_manager_unittest.cc25 const HistogramSamples& snapshot) override { in RecordDelta()
Dhistogram_base.cc101 const HistogramSamples& /*samples*/) const { in FindCorruption()
Dpersistent_histogram_allocator_unittest.cc201 std::unique_ptr<HistogramSamples> snapshot = found->SnapshotSamples(); in TEST_F()

12