Home
last modified time | relevance | path

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

/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
79 HistogramSamples::~HistogramSamples() {} in ~HistogramSamples()
91 void HistogramSamples::Add(const HistogramSamples& other) { in Add()
102 bool HistogramSamples::AddFromPickle(PickleIterator* iter) { in AddFromPickle()
120 void HistogramSamples::Subtract(const HistogramSamples& other) { in Subtract()
131 bool HistogramSamples::Serialize(Pickle* pickle) const { in Serialize()
152 void HistogramSamples::IncreaseSum(int64_t diff) { in IncreaseSum()
156 void HistogramSamples::IncreaseRedundantCount(HistogramBase::Count diff) { in IncreaseRedundantCount()
Dhistogram_samples.h23 class BASE_EXPORT HistogramSamples {
52 explicit HistogramSamples(uint64_t id);
53 HistogramSamples(uint64_t id, Metadata* meta);
54 virtual ~HistogramSamples();
61 virtual void Add(const HistogramSamples& other);
66 virtual void Subtract(const HistogramSamples& other);
93 DISALLOW_COPY_AND_ASSIGN(HistogramSamples);
Dsparse_histogram_unittest.cc48 scoped_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_F()
53 scoped_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_F()
59 scoped_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_F()
67 scoped_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_F()
72 scoped_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_F()
78 scoped_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_F()
100 scoped_ptr<HistogramSamples> samples = sparse_histogram->SnapshotSamples(); in TEST_F()
Dhistogram_snapshot_manager.h18 class HistogramSamples; variable
48 const HistogramSamples& new_snapshot,
49 HistogramSamples* logged_samples);
54 std::map<uint64_t, HistogramSamples*> logged_samples_;
Dhistogram_snapshot_manager.cc43 scoped_ptr<HistogramSamples> snapshot(histogram.SnapshotSamples()); in PrepareDelta()
76 HistogramSamples* to_log; in PrepareDelta()
84 HistogramSamples* already_logged = it->second; in PrepareDelta()
96 const HistogramSamples& new_snapshot, in InspectLoggedSamplesInconsistency()
97 HistogramSamples* logged_samples) { in InspectLoggedSamplesInconsistency()
Dhistogram_base.h26 class HistogramSamples; variable
138 virtual void AddSamples(const HistogramSamples& samples) = 0;
148 virtual int FindCorruption(const HistogramSamples& samples) const;
152 virtual scoped_ptr<HistogramSamples> SnapshotSamples() const = 0;
Dsparse_histogram.h32 class HistogramSamples; variable
50 void AddSamples(const HistogramSamples& samples) override;
52 scoped_ptr<HistogramSamples> SnapshotSamples() const override;
Dsample_map.cc16 SampleMap::SampleMap(uint64_t id) : HistogramSamples(id) {} in SampleMap()
46 HistogramSamples::Operator op) { in AddSubtractImpl()
55 sample_counts_[min] += (op == HistogramSamples::ADD) ? count : -count; in AddSubtractImpl()
Dhistogram_flattener.h16 class HistogramSamples; variable
25 const HistogramSamples& snapshot) = 0;
Dsample_vector.cc19 : HistogramSamples(id), in SampleVector()
32 : HistogramSamples(id, meta), in SampleVector()
74 HistogramSamples::Operator op) { in AddSubtractImpl()
89 old_counts + ((op == HistogramSamples::ADD) ? count : -count)); in AddSubtractImpl()
Dsample_map.h23 class BASE_EXPORT SampleMap : public HistogramSamples {
39 HistogramSamples::Operator op) override; // |op| is ADD or SUBTRACT.
Dsparse_histogram.cc72 scoped_ptr<HistogramSamples> SparseHistogram::SnapshotSamples() const { in SnapshotSamples()
80 void SparseHistogram::AddSamples(const HistogramSamples& samples) { in AddSamples()
136 scoped_ptr<HistogramSamples> snapshot = SnapshotSamples(); in WriteAsciiImpl()
Dsample_vector.h27 class BASE_EXPORT SampleVector : public HistogramSamples {
51 HistogramSamples::Operator op) override; // |op| is ADD or SUBTRACT.
Dhistogram.h159 int FindCorruption(const HistogramSamples& samples) const override;
189 scoped_ptr<HistogramSamples> SnapshotSamples() const override;
190 void AddSamples(const HistogramSamples& samples) override;
Dhistogram_delta_serialization.h43 const HistogramSamples& snapshot) override;
Dhistogram_snapshot_manager_unittest.cc23 const HistogramSamples& snapshot) override { in RecordDelta()
Dhistogram_base.cc100 int HistogramBase::FindCorruption(const HistogramSamples& /* samples */) const { in FindCorruption()
Dhistogram.cc195 int Histogram::FindCorruption(const HistogramSamples& samples) const { in FindCorruption()
301 scoped_ptr<HistogramSamples> Histogram::SnapshotSamples() const { in SnapshotSamples()
305 void Histogram::AddSamples(const HistogramSamples& samples) { in AddSamples()
Dhistogram_unittest.cc82 scoped_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_F()