Home
last modified time | relevance | path

Searched refs:HistogramBase (Results 1 – 25 of 30) sorted by relevance

12

/external/libchrome/base/metrics/
Dhistogram_unittest.cc52 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F()
53 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_F()
56 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_F()
57 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_F()
63 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_F()
64 "TestCustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_F()
79 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F()
80 "DuplicatedHistogram", 1, 101, 102, HistogramBase::kNoFlags); in TEST_F()
97 EXPECT_EQ(HistogramBase::kSampleType_MAX, ranges.range(8)); in TEST_F()
101 Histogram::FactoryGet("Histogram", 1, 64, 8, HistogramBase::kNoFlags)); in TEST_F()
[all …]
Dhistogram_base.cc43 HistogramBase* DeserializeHistogramInfo(PickleIterator* iter) { in DeserializeHistogramInfo()
64 const HistogramBase::Sample HistogramBase::kSampleType_MAX = INT_MAX;
66 HistogramBase::HistogramBase(const std::string& name) in HistogramBase() function in base::HistogramBase
70 HistogramBase::~HistogramBase() {} in ~HistogramBase()
72 void HistogramBase::CheckName(const StringPiece& name) const { in CheckName()
76 void HistogramBase::SetFlags(int32_t flags) { in SetFlags()
77 HistogramBase::Count old_flags = subtle::NoBarrier_Load(&flags_); in SetFlags()
81 void HistogramBase::ClearFlags(int32_t flags) { in ClearFlags()
82 HistogramBase::Count old_flags = subtle::NoBarrier_Load(&flags_); in ClearFlags()
86 void HistogramBase::AddTime(const TimeDelta& time) { in AddTime()
[all …]
Dsample_vector.h32 HistogramBase::AtomicCount* counts,
39 void Accumulate(HistogramBase::Sample value,
40 HistogramBase::Count count) override;
41 HistogramBase::Count GetCount(HistogramBase::Sample value) const override;
42 HistogramBase::Count TotalCount() const override;
46 HistogramBase::Count GetCountAtIndex(size_t bucket_index) const;
53 virtual size_t GetBucketIndex(HistogramBase::Sample value) const;
59 std::vector<HistogramBase::AtomicCount> local_counts_;
64 HistogramBase::AtomicCount* counts_;
75 SampleVectorIterator(const std::vector<HistogramBase::AtomicCount>* counts,
[all …]
Dstatistics_recorder_unittest.cc40 HistogramBase::Sample min, in CreateHistogram()
41 HistogramBase::Sample max, in CreateHistogram()
50 void DeleteHistogram(HistogramBase* histogram) { in DeleteHistogram()
146 HistogramBase* histogram1 = Histogram::FactoryGet( in TEST_F()
147 "TestHistogram1", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_F()
148 HistogramBase* histogram2 = Histogram::FactoryGet( in TEST_F()
149 "TestHistogram2", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_F()
181 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F()
182 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_F()
188 HistogramBase* histogram2 = Histogram::FactoryGet( in TEST_F()
[all …]
Dhistogram_base_unittest.cc37 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F()
39 (HistogramBase::kUmaTargetedHistogramFlag | in TEST_F()
40 HistogramBase::kIPCSerializationSourceFlag)); in TEST_F()
46 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F()
59 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, deserialized->flags()); in TEST_F()
63 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F()
65 HistogramBase::kIPCSerializationSourceFlag); in TEST_F()
71 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F()
86 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F()
87 "TestHistogram", HistogramBase::kIPCSerializationSourceFlag); in TEST_F()
[all …]
Dsample_map.h30 void Accumulate(HistogramBase::Sample value,
31 HistogramBase::Count count) override;
32 HistogramBase::Count GetCount(HistogramBase::Sample value) const override;
33 HistogramBase::Count TotalCount() const override;
42 std::map<HistogramBase::Sample, HistogramBase::Count> sample_counts_;
49 typedef std::map<HistogramBase::Sample, HistogramBase::Count>
58 void Get(HistogramBase::Sample* min,
59 HistogramBase::Sample* max,
60 HistogramBase::Count* count) const override;
Dhistogram_samples.cc20 void Get(HistogramBase::Sample* min,
21 HistogramBase::Sample* max,
22 HistogramBase::Count* count) const override;
27 HistogramBase::Sample min_;
28 HistogramBase::Sample max_;
29 HistogramBase::Count count_;
51 void SampleCountPickleIterator::Get(HistogramBase::Sample* min, in Get()
52 HistogramBase::Sample* max, in Get()
53 HistogramBase::Count* count) const { in Get()
94 HistogramBase::Count old_redundant_count = in Add()
[all …]
Dhistogram_samples.h47 HistogramBase::AtomicCount redundant_count;
56 virtual void Accumulate(HistogramBase::Sample value,
57 HistogramBase::Count count) = 0;
58 virtual HistogramBase::Count GetCount(HistogramBase::Sample value) const = 0;
59 virtual HistogramBase::Count TotalCount() const = 0;
74 HistogramBase::Count redundant_count() const { in redundant_count()
84 void IncreaseRedundantCount(HistogramBase::Count diff);
106 virtual void Get(HistogramBase::Sample* min,
107 HistogramBase::Sample* max,
108 HistogramBase::Count* count) const = 0;
Dhistogram.h99 class BASE_EXPORT Histogram : public HistogramBase {
116 static HistogramBase* FactoryGet(const std::string& name,
121 static HistogramBase* FactoryTimeGet(const std::string& name,
130 static HistogramBase* FactoryGet(const char* name,
135 static HistogramBase* FactoryTimeGet(const char* name,
231 friend BASE_EXPORT HistogramBase* DeserializeHistogramInfo(
233 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter);
291 static HistogramBase* FactoryGet(const std::string& name,
296 static HistogramBase* FactoryTimeGet(const std::string& name,
305 static HistogramBase* FactoryGet(const char* name,
[all …]
Dhistogram_snapshot_manager_unittest.cc22 void RecordDelta(const HistogramBase& histogram, in RecordDelta()
27 void InconsistencyDetected(HistogramBase::Inconsistency problem) override { in InconsistencyDetected()
32 HistogramBase::Inconsistency problem) override { in UniqueInconsistencyDetected()
67 histogram_snapshot_manager_.PrepareDeltas(HistogramBase::kNoFlags, in TEST_F()
68 HistogramBase::kNoFlags); in TEST_F()
83 HistogramBase::kNoFlags, HistogramBase::kUmaTargetedHistogramFlag); in TEST_F()
98 HistogramBase::kNoFlags, HistogramBase::kUmaStabilityHistogramFlag); in TEST_F()
Dhistogram_snapshot_manager.cc26 HistogramBase::Flags flag_to_set, in PrepareDeltas()
27 HistogramBase::Flags required_flags) { in PrepareDeltas()
39 void HistogramSnapshotManager::PrepareDelta(const HistogramBase& histogram) { in PrepareDelta()
49 if (HistogramBase::BUCKET_ORDER_ERROR & corruption) { in PrepareDelta()
51 CHECK_NE(0, HistogramBase::RANGE_CHECKSUM_ERROR & corruption); in PrepareDelta()
55 CHECK_EQ(0, HistogramBase::RANGE_CHECKSUM_ERROR & corruption); in PrepareDelta()
65 static_cast<HistogramBase::Inconsistency>(corruption)); in PrepareDelta()
72 static_cast<HistogramBase::Inconsistency>(corruption)); in PrepareDelta()
98 HistogramBase::Count discrepancy = in InspectLoggedSamplesInconsistency()
Dhistogram_delta_serialization.h20 class HistogramBase; variable
42 void RecordDelta(const HistogramBase& histogram,
44 void InconsistencyDetected(HistogramBase::Inconsistency problem) override;
46 HistogramBase::Inconsistency problem) override;
58 HistogramBase* inconsistencies_histogram_;
59 HistogramBase* inconsistencies_unique_histogram_;
60 HistogramBase* inconsistent_snapshot_histogram_;
Dsample_vector.cc12 typedef HistogramBase::Count Count;
13 typedef HistogramBase::Sample Sample;
28 HistogramBase::AtomicCount* counts, in SampleVector()
75 HistogramBase::Sample min; in AddSubtractImpl()
76 HistogramBase::Sample max; in AddSubtractImpl()
77 HistogramBase::Count count; in AddSubtractImpl()
86 HistogramBase::Count old_counts = in AddSubtractImpl()
132 const std::vector<HistogramBase::AtomicCount>* counts, in SampleVectorIterator()
143 const HistogramBase::AtomicCount* counts, in SampleVectorIterator()
166 void SampleVectorIterator::Get(HistogramBase::Sample* min, in Get()
[all …]
Dhistogram.cc57 INT_MAX / sizeof(HistogramBase::Count) <= *bucket_count || in ReadHistogramArguments()
65 DCHECK(*flags & HistogramBase::kIPCSerializationSourceFlag); in ReadHistogramArguments()
66 *flags &= ~HistogramBase::kIPCSerializationSourceFlag; in ReadHistogramArguments()
71 bool ValidateRangeChecksum(const HistogramBase& histogram, in ValidateRangeChecksum()
81 typedef HistogramBase::Count Count;
82 typedef HistogramBase::Sample Sample;
87 HistogramBase* Histogram::FactoryGet(const std::string& name, in FactoryGet()
96 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in FactoryGet()
126 HistogramBase* Histogram::FactoryTimeGet(const std::string& name, in FactoryTimeGet()
136 HistogramBase* Histogram::FactoryGet(const char* name, in FactoryGet()
[all …]
Dbucket_ranges.cc77 static uint32_t Crc32(uint32_t sum, HistogramBase::Sample value) { in Crc32()
83 HistogramBase::Sample range; in Crc32()
84 unsigned char bytes[sizeof(HistogramBase::Sample)]; in Crc32()
94 HistogramBase::Sample range; in Crc32()
95 uint16_t ints[sizeof(HistogramBase::Sample) / 2]; in Crc32()
97 DCHECK_EQ(sizeof(HistogramBase::Sample), sizeof(converter)); in Crc32()
112 void BucketRanges::set_range(size_t i, HistogramBase::Sample value) { in set_range()
Dhistogram_macros.h75 base::HistogramBase* histogram_pointer( \
76 reinterpret_cast<base::HistogramBase*>( \
102 base::HistogramBase::kNoFlags))
116 base::HistogramBase::kNoFlags))
140 boundary_value + 1, base::HistogramBase::kNoFlags))
150 base::HistogramBase::kNoFlags))
183 base::HistogramBase::kUmaTargetedHistogramFlag))
200 base::HistogramBase::kUmaTargetedHistogramFlag))
217 base::HistogramBase::kUmaTargetedHistogramFlag))
223 base::HistogramBase::kUmaTargetedHistogramFlag)
[all …]
Dsample_map_unittest.cc67 HistogramBase::Sample min; in TEST()
68 HistogramBase::Sample max; in TEST()
69 HistogramBase::Count count; in TEST()
111 HistogramBase::Sample min; in TEST()
112 HistogramBase::Sample max; in TEST()
113 HistogramBase::Count count; in TEST()
141 HistogramBase::Sample min; in TEST()
142 HistogramBase::Sample max; in TEST()
143 HistogramBase::Count count; in TEST()
Dsparse_histogram.cc18 typedef HistogramBase::Count Count;
19 typedef HistogramBase::Sample Sample;
22 HistogramBase* SparseHistogram::FactoryGet(const std::string& name, in FactoryGet()
24 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in FactoryGet()
28 HistogramBase* tentative_histogram = new SparseHistogram(name); in FactoryGet()
105 : HistogramBase(name), in SparseHistogram()
108 HistogramBase* SparseHistogram::DeserializeInfoImpl(PickleIterator* iter) { in DeserializeInfoImpl()
116 DCHECK(flags & HistogramBase::kIPCSerializationSourceFlag); in DeserializeInfoImpl()
117 flags &= ~HistogramBase::kIPCSerializationSourceFlag; in DeserializeInfoImpl()
Dstatistics_recorder.h34 typedef std::vector<HistogramBase*> Histograms;
46 static HistogramBase* RegisterOrDeleteDuplicate(HistogramBase* histogram);
73 static HistogramBase* FindHistogram(const std::string& name);
81 typedef base::Callback<void(HistogramBase::Sample)> OnSampleCallback;
102 typedef std::map<uint64_t, HistogramBase*> HistogramMap;
Dsparse_histogram.h27 base::HistogramBase* histogram = base::SparseHistogram::FactoryGet( \
28 name, base::HistogramBase::kUmaTargetedHistogramFlag); \
34 class BASE_EXPORT SparseHistogram : public HistogramBase {
38 static HistogramBase* FactoryGet(const std::string& name, int32_t flags);
64 friend BASE_EXPORT HistogramBase* DeserializeHistogramInfo(
66 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter);
Dstatistics_recorder.cc41 HistogramBase* StatisticsRecorder::RegisterOrDeleteDuplicate( in RegisterOrDeleteDuplicate()
42 HistogramBase* histogram) { in RegisterOrDeleteDuplicate()
48 HistogramBase* histogram_to_delete = NULL; in RegisterOrDeleteDuplicate()
49 HistogramBase* histogram_to_return = NULL; in RegisterOrDeleteDuplicate()
65 histogram->SetFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate()
67 histogram->ClearFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate()
135 for (const HistogramBase* histogram : snapshot) { in WriteHTMLGraph()
153 for (const HistogramBase* histogram : snapshot) { in WriteGraph()
175 for (const HistogramBase* histogram : snapshot) { in ToJSON()
219 HistogramBase* StatisticsRecorder::FindHistogram(const std::string& name) { in FindHistogram()
[all …]
Dhistogram_base.h25 class HistogramBase; variable
48 BASE_EXPORT HistogramBase* DeserializeHistogramInfo(base::PickleIterator* iter);
52 class BASE_EXPORT HistogramBase {
99 explicit HistogramBase(const std::string& name);
100 virtual ~HistogramBase();
199 DISALLOW_COPY_AND_ASSIGN(HistogramBase);
Dhistogram_flattener.h24 virtual void RecordDelta(const HistogramBase& histogram,
29 virtual void InconsistencyDetected(HistogramBase::Inconsistency problem) = 0;
34 HistogramBase::Inconsistency problem) = 0;
Dhistogram_snapshot_manager.h39 void PrepareDeltas(HistogramBase::Flags flags_to_set,
40 HistogramBase::Flags required_flags);
44 void PrepareDelta(const HistogramBase& histogram);
Dbucket_ranges.h35 typedef std::vector<HistogramBase::Sample> Ranges;
41 HistogramBase::Sample range(size_t i) const { return ranges_[i]; } in range()
42 void set_range(size_t i, HistogramBase::Sample value);

12