/external/cronet/base/metrics/ |
D | histogram_base.cc | 51 HistogramBase* DeserializeHistogramInfo(PickleIterator* iter) { in DeserializeHistogramInfo() 72 HistogramBase::CountAndBucketData::CountAndBucketData(Count count, in CountAndBucketData() 77 HistogramBase::CountAndBucketData::~CountAndBucketData() = default; 79 HistogramBase::CountAndBucketData::CountAndBucketData( 82 HistogramBase::CountAndBucketData& HistogramBase::CountAndBucketData::operator=( 85 const HistogramBase::Sample HistogramBase::kSampleType_MAX = INT_MAX; 87 HistogramBase::HistogramBase(const char* name) in HistogramBase() function in base::HistogramBase 90 HistogramBase::~HistogramBase() = default; 92 void HistogramBase::CheckName(const StringPiece& name) const { in CheckName() 98 void HistogramBase::SetFlags(int32_t flags) { in SetFlags() [all …]
|
D | histogram_unittest.cc | 128 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, in TEST_P() 129 HistogramBase::kNoFlags); in TEST_P() 132 HistogramBase* linear_histogram = LinearHistogram::FactoryGet( in TEST_P() 133 "TestLinearHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 139 HistogramBase* custom_histogram = CustomHistogram::FactoryGet( in TEST_P() 140 "TestCustomHistogram", custom_ranges, HistogramBase::kNoFlags); in TEST_P() 171 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P() 172 "DuplicatedHistogram", 1, 101, 102, HistogramBase::kNoFlags); in TEST_P() 181 HistogramBase* histogram = Histogram::FactoryGet("DeltaHistogram", 1, 64, 8, in TEST_P() 182 HistogramBase::kNoFlags); in TEST_P() [all …]
|
D | histogram_base_unittest.cc | 43 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F() 45 (HistogramBase::kUmaTargetedHistogramFlag | in TEST_F() 46 HistogramBase::kIPCSerializationSourceFlag)); in TEST_F() 52 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F() 65 EXPECT_EQ(HistogramBase::kUmaTargetedHistogramFlag, deserialized->flags()); in TEST_F() 69 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F() 71 HistogramBase::kIPCSerializationSourceFlag); in TEST_F() 77 HistogramBase* deserialized = DeserializeHistogramInfo(&iter); in TEST_F() 92 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F() 93 "TestHistogram", HistogramBase::kIPCSerializationSourceFlag); in TEST_F() [all …]
|
D | histogram_samples.h | 74 bool Accumulate(size_t bucket, HistogramBase::Count count); 124 HistogramBase::AtomicCount redundant_count{0}; 143 virtual void Accumulate(HistogramBase::Sample value, 144 HistogramBase::Count count) = 0; 145 virtual HistogramBase::Count GetCount(HistogramBase::Sample value) const = 0; 146 virtual HistogramBase::Count TotalCount() const = 0; 185 HistogramBase::Count redundant_count() const { in redundant_count() 213 bool AccumulateSingleSample(HistogramBase::Sample value, 214 HistogramBase::Count count, 218 void IncreaseSumAndCount(int64_t sum, HistogramBase::Count count); [all …]
|
D | persistent_sample_map.h | 45 void Accumulate(HistogramBase::Sample value, 46 HistogramBase::Count count) override; 47 HistogramBase::Count GetCount(HistogramBase::Sample value) const override; 48 HistogramBase::Count TotalCount() const override; 64 HistogramBase::Sample value); 72 HistogramBase::Count* GetSampleCountStorage(HistogramBase::Sample value); 76 HistogramBase::Count* GetOrCreateSampleCountStorage( 77 HistogramBase::Sample value); 91 HistogramBase::Count* ImportSamples(HistogramBase::Sample until_value, 97 std::map<HistogramBase::Sample, HistogramBase::Count*> sample_counts_;
|
D | histogram_threadsafe_unittest.cc | 37 size_t GetBucketIndex(HistogramBase::Sample value, const BucketRanges* ranges) { in GetBucketIndex() 56 span<HistogramBase*> histograms, in SnapshotDeltaThread() 57 HistogramBase::Sample histogram_max, in SnapshotDeltaThread() 78 for (HistogramBase* histogram : histograms_) { in Run() 103 void StoreActualSample(HistogramBase* histogram, Histogram::Sample sample) { in StoreActualSample() 128 HistogramBase::Count snapshot_samples_count = snapshot->TotalCount(); in StoreSnapshot() 132 HistogramBase::Sample min; in StoreSnapshot() 134 HistogramBase::Count count; in StoreSnapshot() 145 span<HistogramBase*> histograms_; 146 const HistogramBase::Sample histogram_max_; [all …]
|
D | statistics_recorder_unittest.cc | 104 HistogramBase::Sample min, in CreateHistogram() 105 HistogramBase::Sample max, in CreateHistogram() 139 HistogramBase* const histogram = in TEST_P() 195 HistogramBase* histogram1 = Histogram::FactoryGet( in TEST_P() 196 "TestHistogram1", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 197 HistogramBase* histogram2 = Histogram::FactoryGet( in TEST_P() 198 "TestHistogram2", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 262 HistogramBase* const histogram1 = Histogram::FactoryGet( in TEST_P() 263 "TestHistogram", 1, 1000, 10, HistogramBase::kNoFlags); in TEST_P() 268 HistogramBase* const histogram2 = Histogram::FactoryGet( in TEST_P() [all …]
|
D | histogram_functions.cc | 15 HistogramBase* histogram = BooleanHistogram::FactoryGet( in UmaHistogramBoolean() 16 name, HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramBoolean() 21 HistogramBase* histogram = BooleanHistogram::FactoryGet( in UmaHistogramBoolean() 22 name, HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramBoolean() 29 HistogramBase* histogram = LinearHistogram::FactoryGet( in UmaHistogramExactLinear() 31 HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramExactLinear() 36 HistogramBase* histogram = LinearHistogram::FactoryGet( in UmaHistogramExactLinear() 38 HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramExactLinear() 64 HistogramBase* histogram = in UmaHistogramCustomCounts() 66 HistogramBase::kUmaTargetedHistogramFlag); in UmaHistogramCustomCounts() [all …]
|
D | sample_vector.h | 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; 47 HistogramBase::Count GetCountAtIndex(size_t bucket_index) const; 64 virtual size_t GetBucketIndex(HistogramBase::Sample value) const; 81 virtual HistogramBase::Count* CreateCountsStorageWhileLocked() = 0; 83 HistogramBase::AtomicCount* counts() { in counts() 87 const HistogramBase::AtomicCount* counts() const { in counts() 91 void set_counts(HistogramBase::AtomicCount* counts) const { in set_counts() [all …]
|
D | histogram.h | 101 class BASE_EXPORT Histogram : public HistogramBase { 126 static HistogramBase* FactoryGet(const std::string& name, 131 static HistogramBase* FactoryTimeGet(const std::string& name, 136 static HistogramBase* FactoryMicrosecondsTimeGet(const std::string& name, 145 static HistogramBase* FactoryGet(const char* name, 150 static HistogramBase* FactoryTimeGet(const char* name, 155 static HistogramBase* FactoryMicrosecondsTimeGet(const char* name, 162 static std::unique_ptr<HistogramBase> PersistentCreate( 271 friend BASE_EXPORT HistogramBase* DeserializeHistogramInfo( 273 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter); [all …]
|
D | histogram_snapshot_manager.cc | 26 const std::vector<HistogramBase*>& histograms, in PrepareDeltas() 27 HistogramBase::Flags flags_to_set, in PrepareDeltas() 28 HistogramBase::Flags required_flags) { in PrepareDeltas() 29 for (HistogramBase* const histogram : histograms) { in PrepareDeltas() 38 const std::vector<HistogramBase*>& histograms, in SnapshotUnloggedSamples() 39 HistogramBase::Flags required_flags) { in SnapshotUnloggedSamples() 42 for (HistogramBase* const histogram : histograms) { in SnapshotUnloggedSamples() 63 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { in PrepareDelta() 69 const HistogramBase* histogram) { in PrepareFinalDelta() 74 void HistogramSnapshotManager::PrepareSamples(const HistogramBase* histogram, in PrepareSamples() [all …]
|
D | histogram_snapshot_manager_unittest.cc | 27 HistogramBase* histogram = BooleanHistogram::FactoryGet( in UmaStabilityHistogramBoolean() 28 name, HistogramBase::kUmaStabilityHistogramFlag); in UmaStabilityHistogramBoolean() 43 void RecordDelta(const HistogramBase& histogram, in RecordDelta() 58 std::vector<const HistogramBase*>& GetRecordedDeltaHistograms() { in GetRecordedDeltaHistograms() 68 std::vector<const HistogramBase*> recorded_delta_histograms_; 96 /*include_persistent=*/false, /*flags_to_set=*/HistogramBase::kNoFlags, in TEST_F() 97 /*required_flags=*/HistogramBase::kNoFlags, &histogram_snapshot_manager_); in TEST_F() 100 const std::vector<const HistogramBase*>& histograms = in TEST_F() 119 /*include_persistent=*/false, /*flags_to_set=*/HistogramBase::kNoFlags, in TEST_F() 120 /*required_flags=*/HistogramBase::kUmaTargetedHistogramFlag, in TEST_F() [all …]
|
/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 …]
|
/external/cronet/base/test/metrics/ |
D | histogram_tester.h | 41 using CountsMap = std::map<std::string, HistogramBase::Count, std::less<>>; 57 HistogramBase::Sample sample, 58 HistogramBase::Count expected_bucket_count, 63 HistogramBase::Count expected_bucket_count, 65 ExpectUniqueSample(name, static_cast<HistogramBase::Sample>(sample), 70 HistogramBase::Count expected_bucket_count, 77 HistogramBase::Sample sample, 78 HistogramBase::Count expected_count, 83 HistogramBase::Count expected_count, 85 ExpectBucketCount(name, static_cast<HistogramBase::Sample>(sample), [all …]
|
D | histogram_tester.cc | 34 HistogramBase::Sample sample, in ExpectUniqueSample() 35 HistogramBase::Count expected_bucket_count, in ExpectUniqueSample() 37 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectUniqueSample() 65 HistogramBase::Count expected_bucket_count, in ExpectUniqueTimeSample() 72 HistogramBase::Sample sample, in ExpectBucketCount() 73 HistogramBase::Count expected_count, in ExpectBucketCount() 75 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectBucketCount() 97 HistogramBase::Count expected_count, in ExpectTotalCount() 99 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectTotalCount() 119 HistogramBase::Count count, in ExpectTimeBucketCount() [all …]
|
/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 …]
|
/external/cronet/base/android/ |
D | native_uma_recorder.cc | 27 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString() 49 static HistogramBase* HistogramFromHint(jlong j_histogram_hint) { in HistogramFromHint() 50 return reinterpret_cast<HistogramBase*>(j_histogram_hint); in HistogramFromHint() 58 HistogramBase* histogram) { in CheckHistogramArgs() 70 HistogramBase* BooleanHistogram(JNIEnv* env, in BooleanHistogram() 74 HistogramBase* histogram = HistogramFromHint(j_histogram_hint); in BooleanHistogram() 80 histogram_name, HistogramBase::kUmaTargetedHistogramFlag); in BooleanHistogram() 84 HistogramBase* ExponentialHistogram(JNIEnv* env, in ExponentialHistogram() 94 HistogramBase* histogram = HistogramFromHint(j_histogram_hint); in ExponentialHistogram() 104 HistogramBase::kUmaTargetedHistogramFlag); in ExponentialHistogram() [all …]
|