/external/libchrome/base/metrics/ |
D | histogram_unittest.cc | 119 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P() 120 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 123 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P() 124 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 130 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P() 131 "TestCustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_P() 162 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P() 163 "DuplicatedHistogram", 1, 101, 102, HistogramBase::kNoFlags); in TEST_P() 172 HistogramBase* histogram = in TEST_P() 174 HistogramBase::kNoFlags); in TEST_P() [all …]
|
D | histogram_base.cc | 50 HistogramBase* DeserializeHistogramInfo(PickleIterator* iter) { in DeserializeHistogramInfo() 71 const HistogramBase::Sample HistogramBase::kSampleType_MAX = INT_MAX; 73 HistogramBase::HistogramBase(const char* name) in HistogramBase() function in base::HistogramBase 76 HistogramBase::~HistogramBase() = default; 78 void HistogramBase::CheckName(const StringPiece& name) const { in CheckName() 82 void HistogramBase::SetFlags(int32_t flags) { in SetFlags() 83 HistogramBase::Count old_flags = subtle::NoBarrier_Load(&flags_); in SetFlags() 87 void HistogramBase::ClearFlags(int32_t flags) { in ClearFlags() 88 HistogramBase::Count old_flags = subtle::NoBarrier_Load(&flags_); in ClearFlags() 92 void HistogramBase::AddScaled(Sample value, int count, int scale) { in AddScaled() [all …]
|
D | sample_vector.h | 38 void Accumulate(HistogramBase::Sample value, 39 HistogramBase::Count count) override; 40 HistogramBase::Count GetCount(HistogramBase::Sample value) const override; 41 HistogramBase::Count TotalCount() const override; 45 HistogramBase::Count GetCountAtIndex(size_t bucket_index) const; 55 virtual size_t GetBucketIndex(HistogramBase::Sample value) const; 72 virtual HistogramBase::Count* CreateCountsStorageWhileLocked() = 0; 74 HistogramBase::AtomicCount* counts() { in counts() 75 return reinterpret_cast<HistogramBase::AtomicCount*>( in counts() 79 const HistogramBase::AtomicCount* counts() const { in counts() [all …]
|
D | histogram_samples.h | 66 bool Accumulate(size_t bucket, HistogramBase::Count count); 116 HistogramBase::AtomicCount redundant_count; 134 virtual void Accumulate(HistogramBase::Sample value, 135 HistogramBase::Count count) = 0; 136 virtual HistogramBase::Count GetCount(HistogramBase::Sample value) const = 0; 137 virtual HistogramBase::Count TotalCount() const = 0; 158 HistogramBase::Count redundant_count() const { in redundant_count() 183 bool AccumulateSingleSample(HistogramBase::Sample value, 184 HistogramBase::Count count, 188 void IncreaseSumAndCount(int64_t sum, HistogramBase::Count count); [all …]
|
D | histogram_base_unittest.cc | 41 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F() 43 (HistogramBase::kUmaTargetedHistogramFlag | in TEST_F() 44 HistogramBase::kIPCSerializationSourceFlag)); in TEST_F() 50 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F() 63 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, deserialized->flags()); in TEST_F() 67 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F() 69 HistogramBase::kIPCSerializationSourceFlag); in TEST_F() 75 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F() 90 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F() 91 "TestHistogram", HistogramBase::kIPCSerializationSourceFlag); in TEST_F() [all …]
|
D | persistent_sample_map.h | 41 void Accumulate(HistogramBase::Sample value, 42 HistogramBase::Count count) override; 43 HistogramBase::Count GetCount(HistogramBase::Sample value) const override; 44 HistogramBase::Count TotalCount() const override; 59 HistogramBase::Sample value); 67 HistogramBase::Count* GetSampleCountStorage(HistogramBase::Sample value); 71 HistogramBase::Count* GetOrCreateSampleCountStorage( 72 HistogramBase::Sample value); 86 HistogramBase::Count* ImportSamples(HistogramBase::Sample until_value, 92 std::map<HistogramBase::Sample, HistogramBase::Count*> sample_counts_;
|
D | statistics_recorder_unittest.cc | 98 HistogramBase::Sample min, in CreateHistogram() 99 HistogramBase::Sample max, in CreateHistogram() 135 HistogramBase* const histogram = in TEST_P() 228 HistogramBase* histogram1 = Histogram::FactoryGet( in TEST_P() 229 "TestHistogram1", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 230 HistogramBase* histogram2 = Histogram::FactoryGet( in TEST_P() 231 "TestHistogram2", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 278 HistogramBase* const histogram1 = Histogram::FactoryGet( in TEST_P() 279 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 284 HistogramBase* const histogram2 = Histogram::FactoryGet( in TEST_P() [all …]
|
D | single_sample_metrics.h | 22 virtual void SetSample(HistogramBase::Sample sample) = 0; 55 HistogramBase::Sample min, 56 HistogramBase::Sample max, 72 HistogramBase::Sample min, 73 HistogramBase::Sample max, 83 HistogramBase::Sample min, 84 HistogramBase::Sample max, 90 void SetSample(HistogramBase::Sample sample) override; 93 HistogramBase* const histogram_; 97 HistogramBase::Sample sample_ = -1;
|
D | histogram.h | 100 class BASE_EXPORT Histogram : public HistogramBase { 119 static HistogramBase* FactoryGet(const std::string& name, 124 static HistogramBase* FactoryTimeGet(const std::string& name, 129 static HistogramBase* FactoryMicrosecondsTimeGet(const std::string& name, 138 static HistogramBase* FactoryGet(const char* name, 143 static HistogramBase* FactoryTimeGet(const char* name, 148 static HistogramBase* FactoryMicrosecondsTimeGet(const char* name, 155 static std::unique_ptr<HistogramBase> PersistentCreate( 281 friend BASE_EXPORT HistogramBase* DeserializeHistogramInfo( 283 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter); [all …]
|
D | histogram_samples.cc | 36 void Get(HistogramBase::Sample* min, 38 HistogramBase::Count* count) const override; 43 HistogramBase::Sample min_; 45 HistogramBase::Count count_; 67 void SampleCountPickleIterator::Get(HistogramBase::Sample* min, in Get() 69 HistogramBase::Count* count) const { in Get() 104 HistogramBase::Count count) { in Accumulate() 201 HistogramBase::Count redundant_count; in AddFromPickle() 223 HistogramBase::Sample min; in Serialize() 225 HistogramBase::Count count; in Serialize() [all …]
|
D | dummy_histogram.cc | 26 void Get(HistogramBase::Sample* min, in Get() 28 HistogramBase::Count* count) const override { in Get() 44 void Accumulate(HistogramBase::Sample value, in Accumulate() 45 HistogramBase::Count count) override {} in Accumulate() 46 HistogramBase::Count GetCount(HistogramBase::Sample value) const override { in GetCount() 47 return HistogramBase::Count(); in GetCount() 49 HistogramBase::Count TotalCount() const override { in TotalCount() 50 return HistogramBase::Count(); in TotalCount()
|
D | histogram_snapshot_manager.cc | 47 const std::vector<HistogramBase*>& histograms, in PrepareDeltas() 48 HistogramBase::Flags flags_to_set, in PrepareDeltas() 49 HistogramBase::Flags required_flags) { in PrepareDeltas() 50 for (HistogramBase* const histogram : histograms) { in PrepareDeltas() 57 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { in PrepareDelta() 63 const HistogramBase* histogram) { in PrepareFinalDelta() 69 const HistogramBase* histogram, in PrepareSamples() 86 if (HistogramBase::BUCKET_ORDER_ERROR & corruption) { in PrepareSamples() 94 CHECK_NE(0U, HistogramBase::RANGE_CHECKSUM_ERROR & corruption); in PrepareSamples() 103 CHECK_EQ(0U, HistogramBase::RANGE_CHECKSUM_ERROR & corruption); in PrepareSamples()
|
D | histogram.cc | 64 INT_MAX / sizeof(HistogramBase::Count) <= *bucket_count || in ReadHistogramArguments() 72 *flags &= ~HistogramBase::kIPCSerializationSourceFlag; in ReadHistogramArguments() 77 bool ValidateRangeChecksum(const HistogramBase& histogram, in ValidateRangeChecksum() 92 typedef HistogramBase::Count Count; 93 typedef HistogramBase::Sample Sample; 101 HistogramBase::Sample minimum, in Factory() 102 HistogramBase::Sample maximum, in Factory() 110 HistogramBase* Build(); 115 HistogramBase::Sample minimum, in Factory() 116 HistogramBase::Sample maximum, in Factory() [all …]
|
D | sample_map.h | 32 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_;
|
D | statistics_recorder.cc | 26 bool HistogramNameLesser(const base::HistogramBase* a, in HistogramNameLesser() 27 const base::HistogramBase* b) { in HistogramNameLesser() 80 HistogramBase* StatisticsRecorder::RegisterOrDeleteDuplicate( in RegisterOrDeleteDuplicate() 81 HistogramBase* histogram) { in RegisterOrDeleteDuplicate() 83 std::unique_ptr<HistogramBase> histogram_deleter; in RegisterOrDeleteDuplicate() 88 HistogramBase*& registered = top_->histograms_[name]; in RegisterOrDeleteDuplicate() 100 histogram->SetFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate() 102 histogram->ClearFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate() 140 for (const HistogramBase* const histogram : in WriteHTMLGraph() 155 for (const HistogramBase* const histogram : in WriteGraph() [all …]
|
D | histogram_functions.cc | 15 HistogramBase* histogram = BooleanHistogram::FactoryGet( in UmaHistogramBoolean() 16 name, HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramBoolean() 23 HistogramBase* histogram = in UmaHistogramExactLinear() 25 HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramExactLinear() 38 HistogramBase* histogram = Histogram::FactoryGet( in UmaHistogramCustomCounts() 39 name, min, max, buckets, HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramCustomCounts() 72 HistogramBase* histogram = Histogram::FactoryTimeGet( in UmaHistogramCustomTimes() 73 name, min, max, buckets, HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramCustomTimes() 105 HistogramBase* histogram = SparseHistogram::FactoryGet( in UmaHistogramSparse() 106 name, HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramSparse()
|
D | histogram_snapshot_manager.h | 42 void PrepareDeltas(const std::vector<HistogramBase*>& histograms, 43 HistogramBase::Flags flags_to_set, 44 HistogramBase::Flags required_flags); 51 void PrepareDelta(HistogramBase* histogram); 52 void PrepareFinalDelta(const HistogramBase* histogram); 68 void PrepareSamples(const HistogramBase* histogram,
|
D | histogram_macros.h | 83 name, __VA_ARGS__, base::HistogramBase::kUmaTargetedHistogramFlag)) 92 base::HistogramBase::kUmaTargetedHistogramFlag) 101 base::HistogramBase::kUmaTargetedHistogramFlag)) 117 name, sample, value_max, base::HistogramBase::kUmaTargetedHistogramFlag) 138 base::HistogramBase::kUmaTargetedHistogramFlag) 190 base::HistogramBase::kUmaTargetedHistogramFlag) 238 base::HistogramBase::kUmaTargetedHistogramFlag)) 258 base::HistogramBase::kUmaTargetedHistogramFlag)) 318 base::HistogramBase::kUmaStabilityHistogramFlag) 323 base::HistogramBase::kUmaStabilityHistogramFlag) [all …]
|
D | sparse_histogram_unittest.cc | 179 const HistogramBase* const sparse_histogram = histograms[0]; in TEST_P() 184 HistogramBase::kUmaTargetedHistogramFlag | in TEST_P() 185 (use_persistent_histogram_allocator_ ? HistogramBase::kIsPersistent in TEST_P() 212 histogram->SetFlags(HistogramBase::kIPCSerializationSourceFlag); in TEST_P() 229 EXPECT_EQ(HistogramBase::kIPCSerializationSourceFlag, flag); in TEST_P() 242 HistogramBase* original = in TEST_P() 243 SparseHistogram::FactoryGet(histogram_name, HistogramBase::kNoFlags); in TEST_P() 257 SparseHistogram::FactoryGet("something.new", HistogramBase::kNoFlags); in TEST_P() 269 HistogramBase* duplicate = in TEST_P() 270 SparseHistogram::FactoryGet(histogram_name, HistogramBase::kNoFlags); in TEST_P() [all …]
|
D | sample_vector.cc | 23 typedef HistogramBase::Count Count; 24 typedef HistogramBase::Sample Sample; 82 const HistogramBase::AtomicCount* counts_array = counts(); in TotalCount() 135 HistogramBase::Sample min; in AddSubtractImpl() 137 HistogramBase::Count count; in AddSubtractImpl() 269 HistogramBase::Count* counts = CreateCountsStorageWhileLocked(); in MountCountsStorageAndMoveSingleSample() 300 HistogramBase::AtomicCount* SampleVector::CreateCountsStorageWhileLocked() { in CreateCountsStorageWhileLocked() 344 static_cast<HistogramBase::AtomicCount*>(persistent_counts_.Get())); in MountExistingCountsStorage() 350 HistogramBase::AtomicCount* 358 return new HistogramBase::AtomicCount[counts_size()]; in CreateCountsStorageWhileLocked() [all …]
|
D | single_sample_metrics.cc | 39 HistogramBase::Sample min, in CreateCustomCountsMetric() 40 HistogramBase::Sample max, in CreateCustomCountsMetric() 44 HistogramBase::kUmaTargetedHistogramFlag); in CreateCustomCountsMetric() 49 HistogramBase::Sample min, in DefaultSingleSampleMetric() 50 HistogramBase::Sample max, in DefaultSingleSampleMetric() 72 void DefaultSingleSampleMetric::SetSample(HistogramBase::Sample sample) { in SetSample()
|
D | statistics_recorder.h | 59 typedef std::vector<HistogramBase*> Histograms; 86 static HistogramBase* RegisterOrDeleteDuplicate(HistogramBase* histogram); 130 static HistogramBase* FindHistogram(base::StringPiece name); 143 HistogramBase::Flags flags_to_set, 144 HistogramBase::Flags required_flags, 147 typedef base::Callback<void(HistogramBase::Sample)> OnSampleCallback; 227 typedef std::unordered_map<StringPiece, HistogramBase*, StringPieceHash>
|
/external/libchrome/base/test/metrics/ |
D | histogram_tester.h | 36 using CountsMap = std::map<std::string, HistogramBase::Count>; 46 HistogramBase::Sample sample, 47 HistogramBase::Count expected_count) const; 51 HistogramBase::Count expected_count) const { in ExpectUniqueSample() 52 ExpectUniqueSample(name, static_cast<HistogramBase::Sample>(sample), in ExpectUniqueSample() 60 HistogramBase::Sample sample, 61 HistogramBase::Count expected_count) const; 65 HistogramBase::Count expected_count) const { in ExpectBucketCount() 66 ExpectBucketCount(name, static_cast<HistogramBase::Sample>(sample), in ExpectBucketCount() 74 HistogramBase::Count count) const; [all …]
|
D | histogram_tester.cc | 34 HistogramBase::Sample sample, in ExpectUniqueSample() 35 HistogramBase::Count expected_count) const { in ExpectUniqueSample() 36 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectUniqueSample() 49 HistogramBase::Sample sample, in ExpectBucketCount() 50 HistogramBase::Count expected_count) const { in ExpectBucketCount() 51 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectBucketCount() 62 HistogramBase::Count count) const { in ExpectTotalCount() 63 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectTotalCount() 75 HistogramBase::Count count) const { in ExpectTimeBucketCount() 86 HistogramBase::Sample sample; in GetAllSamples() [all …]
|
/external/libchrome/base/android/ |
D | record_histogram.cc | 32 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString() 56 HistogramBase* histogram) { in JNI_RecordHistogram_CheckHistogramArgs() 68 HistogramBase* JNI_RecordHistogram_BooleanHistogram(JNIEnv* env, in JNI_RecordHistogram_BooleanHistogram() 72 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in JNI_RecordHistogram_BooleanHistogram() 78 histogram_name, HistogramBase::kUmaTargetedHistogramFlag); in JNI_RecordHistogram_BooleanHistogram() 82 HistogramBase* JNI_RecordHistogram_EnumeratedHistogram( in JNI_RecordHistogram_EnumeratedHistogram() 88 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in JNI_RecordHistogram_EnumeratedHistogram() 99 HistogramBase::kUmaTargetedHistogramFlag); in JNI_RecordHistogram_EnumeratedHistogram() 103 HistogramBase* JNI_RecordHistogram_CustomCountHistogram( in JNI_RecordHistogram_CustomCountHistogram() 114 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in JNI_RecordHistogram_CustomCountHistogram() [all …]
|