Home
last modified time | relevance | path

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

12

/external/libchrome/base/metrics/
Dhistogram_unittest.cc99 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
100 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
103 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P()
104 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
110 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P()
111 "TestCustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_P()
142 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P()
143 "DuplicatedHistogram", 1, 101, 102, HistogramBase::kNoFlags); in TEST_P()
152 HistogramBase* histogram = in TEST_P()
154 HistogramBase::kNoFlags); in TEST_P()
[all …]
Dhistogram_base.cc42 HistogramBase* DeserializeHistogramInfo(PickleIterator* iter) { in DeserializeHistogramInfo()
63 const HistogramBase::Sample HistogramBase::kSampleType_MAX = INT_MAX;
64 HistogramBase* HistogramBase::report_histogram_ = nullptr;
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()
[all …]
Dhistogram.h100 class BASE_EXPORT Histogram : public HistogramBase {
119 static HistogramBase* FactoryGet(const std::string& name,
124 static HistogramBase* FactoryTimeGet(const std::string& name,
133 static HistogramBase* FactoryGet(const char* name,
138 static HistogramBase* FactoryTimeGet(const char* name,
145 static std::unique_ptr<HistogramBase> PersistentCreate(
150 HistogramBase::AtomicCount* counts,
151 HistogramBase::AtomicCount* logged_counts,
238 HistogramBase::AtomicCount* counts,
239 HistogramBase::AtomicCount* logged_counts,
[all …]
Dhistogram_base_unittest.cc25 HistogramBase::report_histogram_ = nullptr; in ~HistogramBaseTest()
35 HistogramBase* GetCreationReportHistogram(const std::string& name) { in GetCreationReportHistogram()
36 HistogramBase::EnableActivityReportHistogram(name); in GetCreationReportHistogram()
37 return HistogramBase::report_histogram_; in GetCreationReportHistogram()
47 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F()
49 (HistogramBase::kUmaTargetedHistogramFlag | in TEST_F()
50 HistogramBase::kIPCSerializationSourceFlag)); in TEST_F()
56 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F()
69 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, deserialized->flags()); in TEST_F()
73 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F()
[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;
60 std::vector<HistogramBase::AtomicCount> local_counts_;
65 HistogramBase::AtomicCount* counts_;
76 SampleVectorIterator(const std::vector<HistogramBase::AtomicCount>* counts,
[all …]
Dpersistent_sample_map.h42 void Accumulate(HistogramBase::Sample value,
43 HistogramBase::Count count) override;
44 HistogramBase::Count GetCount(HistogramBase::Sample value) const override;
45 HistogramBase::Count TotalCount() const override;
60 HistogramBase::Sample value);
68 HistogramBase::Count* GetSampleCountStorage(HistogramBase::Sample value);
72 HistogramBase::Count* GetOrCreateSampleCountStorage(
73 HistogramBase::Sample value);
87 HistogramBase::Count* ImportSamples(HistogramBase::Sample until_value,
93 std::map<HistogramBase::Sample, HistogramBase::Count*> sample_counts_;
Dstatistics_recorder_unittest.cc81 HistogramBase::Sample min, in CreateHistogram()
82 HistogramBase::Sample max, in CreateHistogram()
91 void DeleteHistogram(HistogramBase* histogram) { in DeleteHistogram()
216 HistogramBase* histogram1 = Histogram::FactoryGet( in TEST_P()
217 "TestHistogram1", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
218 HistogramBase* histogram2 = Histogram::FactoryGet( in TEST_P()
219 "TestHistogram2", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
274 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P()
275 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P()
281 HistogramBase* histogram2 = Histogram::FactoryGet( in TEST_P()
[all …]
Dhistogram.cc60 INT_MAX / sizeof(HistogramBase::Count) <= *bucket_count || in ReadHistogramArguments()
68 *flags &= ~HistogramBase::kIPCSerializationSourceFlag; in ReadHistogramArguments()
73 bool ValidateRangeChecksum(const HistogramBase& histogram, in ValidateRangeChecksum()
83 typedef HistogramBase::Count Count;
84 typedef HistogramBase::Sample Sample;
92 HistogramBase::Sample minimum, in Factory()
93 HistogramBase::Sample maximum, in Factory()
101 HistogramBase* Build();
106 HistogramBase::Sample minimum, in Factory()
107 HistogramBase::Sample maximum, in Factory()
[all …]
Dhistogram_delta_serialization.cc22 HistogramBase* histogram = DeserializeHistogramInfo(iter); in DeserializeHistogramAndAddSamples()
26 if (histogram->flags() & HistogramBase::kIPCSerializationSourceFlag) { in DeserializeHistogramAndAddSamples()
43 HistogramBase::NEVER_EXCEEDED_VALUE, in HistogramDeltaSerialization()
44 HistogramBase::NEVER_EXCEEDED_VALUE + 1, in HistogramDeltaSerialization()
45 HistogramBase::kUmaTargetedHistogramFlag); in HistogramDeltaSerialization()
50 HistogramBase::NEVER_EXCEEDED_VALUE, in HistogramDeltaSerialization()
51 HistogramBase::NEVER_EXCEEDED_VALUE + 1, in HistogramDeltaSerialization()
52 HistogramBase::kUmaTargetedHistogramFlag); in HistogramDeltaSerialization()
57 HistogramBase::kUmaTargetedHistogramFlag); in HistogramDeltaSerialization()
90 const HistogramBase& histogram, in RecordDelta()
[all …]
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()
95 HistogramBase::Count redundant_count; in AddFromPickle()
[all …]
Dhistogram_samples.h56 HistogramBase::AtomicCount redundant_count;
65 virtual void Accumulate(HistogramBase::Sample value,
66 HistogramBase::Count count) = 0;
67 virtual HistogramBase::Count GetCount(HistogramBase::Sample value) const = 0;
68 virtual HistogramBase::Count TotalCount() const = 0;
89 HistogramBase::Count redundant_count() const { in redundant_count()
99 void IncreaseRedundantCount(HistogramBase::Count diff);
121 virtual void Get(HistogramBase::Sample* min,
122 HistogramBase::Sample* max,
123 HistogramBase::Count* count) const = 0;
Dhistogram_snapshot_manager.cc26 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { in PrepareDelta()
31 const HistogramBase* histogram) { in PrepareFinalDelta()
36 const HistogramBase* histogram, in PrepareSamples()
48 if (HistogramBase::BUCKET_ORDER_ERROR & corruption) { in PrepareSamples()
52 std::vector<HistogramBase::Sample> ranges_copy; in PrepareSamples()
55 HistogramBase::Sample* ranges_ptr = &ranges_copy[0]; in PrepareSamples()
59 CHECK_NE(0U, HistogramBase::RANGE_CHECKSUM_ERROR & corruption); in PrepareSamples()
68 CHECK_EQ(0U, HistogramBase::RANGE_CHECKSUM_ERROR & corruption); in PrepareSamples()
77 static_cast<HistogramBase::Inconsistency>(corruption)); in PrepareSamples()
84 static_cast<HistogramBase::Inconsistency>(corruption)); in PrepareSamples()
[all …]
Dpersistent_histogram_allocator.cc55 HistogramBase::Sample* ranges_data, in CreateRangesFromData()
79 const size_t kBytesPerBucket = 2 * sizeof(HistogramBase::AtomicCount); in CalculateRequiredCountsBytes()
218 HistogramBase::Sample value) { in CreateNew()
248 std::unique_ptr<HistogramBase>
266 std::unique_ptr<HistogramBase> PersistentHistogramAllocator::GetHistogram( in GetHistogram()
286 std::unique_ptr<HistogramBase> PersistentHistogramAllocator::AllocateHistogram( in AllocateHistogram()
316 histogram_data->flags = flags | HistogramBase::kIsPersistent; in AllocateHistogram()
329 size_t ranges_bytes = (bucket_count + 1) * sizeof(HistogramBase::Sample); in AllocateHistogram()
334 HistogramBase::Sample* ranges_data = in AllocateHistogram()
335 memory_allocator_->GetAsObject<HistogramBase::Sample>( in AllocateHistogram()
[all …]
Dsample_map.h32 void Accumulate(HistogramBase::Sample value,
33 HistogramBase::Count count) override;
34 HistogramBase::Count GetCount(HistogramBase::Sample value) const override;
35 HistogramBase::Count TotalCount() const override;
43 std::map<HistogramBase::Sample, HistogramBase::Count> sample_counts_;
Dhistogram_delta_serialization.h20 class HistogramBase; variable
45 void RecordDelta(const HistogramBase& histogram,
47 void InconsistencyDetected(HistogramBase::Inconsistency problem) override;
49 HistogramBase::Inconsistency problem) override;
61 HistogramBase* inconsistencies_histogram_;
62 HistogramBase* inconsistencies_unique_histogram_;
63 HistogramBase* inconsistent_snapshot_histogram_;
Dhistogram_snapshot_manager_unittest.cc24 void RecordDelta(const HistogramBase& histogram, in RecordDelta()
35 void InconsistencyDetected(HistogramBase::Inconsistency problem) override { in InconsistencyDetected()
40 HistogramBase::Inconsistency problem) override { in UniqueInconsistencyDetected()
89 HistogramBase::kNoFlags, HistogramBase::kNoFlags); in TEST_F()
105 HistogramBase::kNoFlags, HistogramBase::kUmaTargetedHistogramFlag); in TEST_F()
121 HistogramBase::kNoFlags, HistogramBase::kUmaStabilityHistogramFlag); in TEST_F()
Dpersistent_histogram_allocator_unittest.cc60 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F()
61 "TestHistogram", 1, 1000, 10, HistogramBase::kIsPersistent); in TEST_F()
68 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_F()
69 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kIsPersistent); in TEST_F()
76 HistogramBase* boolean_histogram = BooleanHistogram::FactoryGet( in TEST_F()
77 "TestBooleanHistogram", HistogramBase::kIsPersistent); in TEST_F()
87 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_F()
88 "TestCustomHistogram", custom_ranges, HistogramBase::kIsPersistent); in TEST_F()
104 std::unique_ptr<HistogramBase> recovered; in TEST_F()
168 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F()
[all …]
Dpersistent_histogram_allocator.h124 PersistentMemoryAllocator::Reference CreateNew(HistogramBase::Sample value);
190 std::unique_ptr<HistogramBase> GetNext() { return GetNextWithIgnore(0); } in GetNext()
194 std::unique_ptr<HistogramBase> GetNextWithIgnore(Reference ignore);
234 std::unique_ptr<HistogramBase> GetHistogram(Reference ref);
238 std::unique_ptr<HistogramBase> AllocateHistogram(
256 void MergeHistogramDeltaToStatisticsRecorder(HistogramBase* histogram);
263 const HistogramBase* histogram);
290 static HistogramBase* GetCreateHistogramResultHistogram();
305 std::unique_ptr<HistogramBase> GetNextHistogramWithIgnore(Iterator* iter,
346 std::unique_ptr<HistogramBase> CreateHistogram(
[all …]
Dsample_vector.cc12 typedef HistogramBase::Count Count;
13 typedef HistogramBase::Sample Sample;
28 HistogramBase::AtomicCount* counts, in SampleVector()
74 HistogramBase::Sample min; in AddSubtractImpl()
75 HistogramBase::Sample max; in AddSubtractImpl()
76 HistogramBase::Count count; in AddSubtractImpl()
129 const std::vector<HistogramBase::AtomicCount>* counts, in SampleVectorIterator()
140 const HistogramBase::AtomicCount* counts, in SampleVectorIterator()
163 void SampleVectorIterator::Get(HistogramBase::Sample* min, in Get()
164 HistogramBase::Sample* max, in Get()
[all …]
Dhistogram_macros.h86 base::HistogramBase* histogram_pointer( \
87 reinterpret_cast<base::HistogramBase*>( \
131 base::HistogramBase::kNoFlags))
145 base::HistogramBase::kNoFlags))
169 boundary_value + 1, base::HistogramBase::kNoFlags))
179 base::HistogramBase::kNoFlags))
212 base::HistogramBase::kUmaTargetedHistogramFlag))
229 base::HistogramBase::kUmaTargetedHistogramFlag))
246 base::HistogramBase::kUmaTargetedHistogramFlag))
252 base::HistogramBase::kUmaTargetedHistogramFlag)
[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()
Dsparse_histogram_unittest.cc160 HistogramBase* sparse_histogram = histograms[0]; in TEST_P()
165 HistogramBase::kUmaTargetedHistogramFlag | in TEST_P()
166 (use_persistent_histogram_allocator_ ? HistogramBase::kIsPersistent in TEST_P()
197 histogram->SetFlags(HistogramBase::kIPCSerializationSourceFlag); in TEST_P()
214 EXPECT_EQ(HistogramBase::kIPCSerializationSourceFlag, flag); in TEST_P()
227 HistogramBase* original = in TEST_P()
228 SparseHistogram::FactoryGet(histogram_name, HistogramBase::kNoFlags); in TEST_P()
242 SparseHistogram::FactoryGet("something.new", HistogramBase::kNoFlags); in TEST_P()
254 HistogramBase* duplicate = in TEST_P()
255 SparseHistogram::FactoryGet(histogram_name, HistogramBase::kNoFlags); in TEST_P()
[all …]
Dhistogram_base.h26 class HistogramBase; variable
82 BASE_EXPORT HistogramBase* DeserializeHistogramInfo(base::PickleIterator* iter);
86 class BASE_EXPORT HistogramBase {
140 explicit HistogramBase(const std::string& name);
141 virtual ~HistogramBase();
262 static void ReportHistogramActivity(const HistogramBase& histogram,
266 static HistogramBase* report_histogram_;
274 DISALLOW_COPY_AND_ASSIGN(HistogramBase);
Dstatistics_recorder.cc28 bool HistogramNameLesser(const base::HistogramBase* a, in HistogramNameLesser()
29 const base::HistogramBase* b) { in HistogramNameLesser()
44 (iter_->second->flags() & HistogramBase::kIsPersistent)) { in HistogramIterator()
72 HistogramBase::kIsPersistent)) { in operator ++()
109 HistogramBase* StatisticsRecorder::RegisterOrDeleteDuplicate( in RegisterOrDeleteDuplicate()
110 HistogramBase* histogram) { in RegisterOrDeleteDuplicate()
121 HistogramBase* histogram_to_delete = NULL; in RegisterOrDeleteDuplicate()
122 HistogramBase* histogram_to_return = NULL; in RegisterOrDeleteDuplicate()
140 histogram->SetFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate()
142 histogram->ClearFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate()
[all …]
/external/libmojo/base/android/
Drecord_histogram.cc34 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString()
57 HistogramBase* histogram) { in CheckHistogramArgs()
65 HistogramBase* BooleanHistogram(JNIEnv* env, in BooleanHistogram()
69 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in BooleanHistogram()
75 histogram_name, HistogramBase::kUmaTargetedHistogramFlag); in BooleanHistogram()
79 HistogramBase* EnumeratedHistogram(JNIEnv* env, in EnumeratedHistogram()
84 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in EnumeratedHistogram()
95 HistogramBase::kUmaTargetedHistogramFlag); in EnumeratedHistogram()
99 HistogramBase* CustomCountHistogram(JNIEnv* env, in CustomCountHistogram()
109 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in CustomCountHistogram()
[all …]

12