/external/cronet/stable/base/metrics/ |
D | histogram_functions_unittest.cc | 22 std::string histogram("Testing.UMA.HistogramExactLinear"); in TEST() local 24 UmaHistogramExactLinear(histogram, 10, 100); in TEST() 25 tester.ExpectUniqueSample(histogram, 10, 1); in TEST() 26 UmaHistogramExactLinear(histogram, 20, 100); in TEST() 27 UmaHistogramExactLinear(histogram, 10, 100); in TEST() 28 tester.ExpectBucketCount(histogram, 10, 2); in TEST() 29 tester.ExpectBucketCount(histogram, 20, 1); in TEST() 30 tester.ExpectTotalCount(histogram, 3); in TEST() 32 UmaHistogramExactLinear(histogram, 200, 100); in TEST() 33 tester.ExpectBucketCount(histogram, 101, 1); in TEST() [all …]
|
D | histogram_unittest.cc | 109 CountAndBucketData GetCountAndBucketData(Histogram* histogram) { in GetCountAndBucketData() argument 112 return histogram->GetCountAndBucketData(); in GetCountAndBucketData() 128 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, in TEST_P() local 130 EXPECT_TRUE(histogram); in TEST_P() 171 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P() local 174 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P() 181 HistogramBase* histogram = Histogram::FactoryGet("DeltaHistogram", 1, 64, 8, in TEST_P() local 183 histogram->Add(1); in TEST_P() 184 histogram->Add(10); in TEST_P() 185 histogram->Add(50); in TEST_P() [all …]
|
D | sparse_histogram_unittest.cc | 90 CountAndBucketData GetCountAndBucketData(SparseHistogram* histogram) { in GetCountAndBucketData() argument 93 return histogram->GetCountAndBucketData(); in GetCountAndBucketData() 108 std::unique_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse")); in TEST_P() local 109 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() 113 histogram->Add(100); in TEST_P() 114 std::unique_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_P() 118 histogram->Add(100); in TEST_P() 119 histogram->Add(101); in TEST_P() 120 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P() 127 std::unique_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse")); in TEST_P() local [all …]
|
D | histogram_base_unittest.cc | 45 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F() local 51 histogram->SerializeInfo(&pickle); in TEST_F() 55 EXPECT_EQ(histogram, deserialized); in TEST_F() 62 EXPECT_NE(histogram, deserialized); in TEST_F() 71 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F() local 76 histogram->SerializeInfo(&pickle); in TEST_F() 80 EXPECT_EQ(histogram, deserialized); in TEST_F() 87 EXPECT_NE(histogram, deserialized); in TEST_F() 94 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F() local 98 histogram->SerializeInfo(&pickle); in TEST_F() [all …]
|
D | histogram_snapshot_manager.cc | 30 for (HistogramBase* const histogram : histograms) { in PrepareDeltas() 31 histogram->SetFlags(flags_to_set); in PrepareDeltas() 32 if (histogram->HasFlags(required_flags)) { in PrepareDeltas() 33 PrepareDelta(histogram); in PrepareDeltas() 43 for (HistogramBase* const histogram : histograms) { in SnapshotUnloggedSamples() 44 if (histogram->HasFlags(required_flags)) { in SnapshotUnloggedSamples() 47 histogram, histogram->SnapshotUnloggedSamples()); in SnapshotUnloggedSamples() 59 for (auto& [histogram, snapshot] : histograms_and_snapshots) { in MarkUnloggedSamplesAsLogged() 60 histogram->MarkSamplesAsLogged(*snapshot); in MarkUnloggedSamplesAsLogged() 64 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { in PrepareDelta() argument [all …]
|
/external/cronet/tot/base/metrics/ |
D | histogram_functions_unittest.cc | 22 std::string histogram("Testing.UMA.HistogramExactLinear"); in TEST() local 24 UmaHistogramExactLinear(histogram, 10, 100); in TEST() 25 tester.ExpectUniqueSample(histogram, 10, 1); in TEST() 26 UmaHistogramExactLinear(histogram, 20, 100); in TEST() 27 UmaHistogramExactLinear(histogram, 10, 100); in TEST() 28 tester.ExpectBucketCount(histogram, 10, 2); in TEST() 29 tester.ExpectBucketCount(histogram, 20, 1); in TEST() 30 tester.ExpectTotalCount(histogram, 3); in TEST() 32 UmaHistogramExactLinear(histogram, 200, 100); in TEST() 33 tester.ExpectBucketCount(histogram, 101, 1); in TEST() [all …]
|
D | histogram_unittest.cc | 109 CountAndBucketData GetCountAndBucketData(Histogram* histogram) { in GetCountAndBucketData() argument 112 return histogram->GetCountAndBucketData(); in GetCountAndBucketData() 128 HistogramBase* histogram = Histogram::FactoryGet("TestHistogram", 1, 1000, 10, in TEST_P() local 130 EXPECT_TRUE(histogram); in TEST_P() 171 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P() local 174 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P() 181 HistogramBase* histogram = Histogram::FactoryGet("DeltaHistogram", 1, 64, 8, in TEST_P() local 183 histogram->Add(1); in TEST_P() 184 histogram->Add(10); in TEST_P() 185 histogram->Add(50); in TEST_P() [all …]
|
D | sparse_histogram_unittest.cc | 90 CountAndBucketData GetCountAndBucketData(SparseHistogram* histogram) { in GetCountAndBucketData() argument 93 return histogram->GetCountAndBucketData(); in GetCountAndBucketData() 108 std::unique_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse")); in TEST_P() local 109 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() 113 histogram->Add(100); in TEST_P() 114 std::unique_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_P() 118 histogram->Add(100); in TEST_P() 119 histogram->Add(101); in TEST_P() 120 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P() 127 std::unique_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse")); in TEST_P() local [all …]
|
D | histogram_base_unittest.cc | 45 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F() local 51 histogram->SerializeInfo(&pickle); in TEST_F() 55 EXPECT_EQ(histogram, deserialized); in TEST_F() 62 EXPECT_NE(histogram, deserialized); in TEST_F() 71 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F() local 76 histogram->SerializeInfo(&pickle); in TEST_F() 80 EXPECT_EQ(histogram, deserialized); in TEST_F() 87 EXPECT_NE(histogram, deserialized); in TEST_F() 94 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F() local 98 histogram->SerializeInfo(&pickle); in TEST_F() [all …]
|
D | histogram_snapshot_manager.cc | 30 for (HistogramBase* const histogram : histograms) { in PrepareDeltas() 31 histogram->SetFlags(flags_to_set); in PrepareDeltas() 32 if (histogram->HasFlags(required_flags)) { in PrepareDeltas() 33 PrepareDelta(histogram); in PrepareDeltas() 43 for (HistogramBase* const histogram : histograms) { in SnapshotUnloggedSamples() 44 if (histogram->HasFlags(required_flags)) { in SnapshotUnloggedSamples() 47 histogram, histogram->SnapshotUnloggedSamples()); in SnapshotUnloggedSamples() 59 for (auto& [histogram, snapshot] : histograms_and_snapshots) { in MarkUnloggedSamplesAsLogged() 60 histogram->MarkSamplesAsLogged(*snapshot); in MarkUnloggedSamplesAsLogged() 64 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { in PrepareDelta() argument [all …]
|
/external/tensorflow/tensorflow/core/lib/monitoring/ |
D | cell_reader_test.cc | 318 Histogram histogram = cell_reader.Delta(); in TEST() local 319 EXPECT_FLOAT_EQ(histogram.num(), 0.0); in TEST() 320 EXPECT_FLOAT_EQ(histogram.sum(), 0.0); in TEST() 321 EXPECT_FLOAT_EQ(histogram.sum_squares(), 0.0); in TEST() 322 EXPECT_FLOAT_EQ(histogram.num(0), 0.0); in TEST() 323 EXPECT_FLOAT_EQ(histogram.num(1), 0.0); in TEST() 324 EXPECT_FLOAT_EQ(histogram.num(2), 0.0); in TEST() 325 EXPECT_FLOAT_EQ(histogram.num(3), 0.0); in TEST() 326 EXPECT_FLOAT_EQ(histogram.num(4), 0.0); in TEST() 327 EXPECT_FLOAT_EQ(histogram.num(5), 0.0); in TEST() [all …]
|
/external/libchrome/base/metrics/ |
D | histogram_functions_unittest.cc | 22 std::string histogram("Testing.UMA.HistogramExactLinear"); in TEST() local 24 UmaHistogramExactLinear(histogram, 10, 100); in TEST() 25 tester.ExpectUniqueSample(histogram, 10, 1); in TEST() 26 UmaHistogramExactLinear(histogram, 20, 100); in TEST() 27 UmaHistogramExactLinear(histogram, 10, 100); in TEST() 28 tester.ExpectBucketCount(histogram, 10, 2); in TEST() 29 tester.ExpectBucketCount(histogram, 20, 1); in TEST() 30 tester.ExpectTotalCount(histogram, 3); in TEST() 32 UmaHistogramExactLinear(histogram, 200, 100); in TEST() 33 tester.ExpectBucketCount(histogram, 101, 1); in TEST() [all …]
|
D | histogram_base_unittest.cc | 41 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F() local 47 histogram->SerializeInfo(&pickle); in TEST_F() 51 EXPECT_EQ(histogram, deserialized); in TEST_F() 58 EXPECT_NE(histogram, deserialized); in TEST_F() 67 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F() local 72 histogram->SerializeInfo(&pickle); in TEST_F() 76 EXPECT_EQ(histogram, deserialized); in TEST_F() 83 EXPECT_NE(histogram, deserialized); in TEST_F() 90 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F() local 94 histogram->SerializeInfo(&pickle); in TEST_F() [all …]
|
D | histogram_unittest.cc | 119 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P() local 121 EXPECT_TRUE(histogram); in TEST_P() 162 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P() local 165 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P() 172 HistogramBase* histogram = in TEST_P() local 175 histogram->Add(1); in TEST_P() 176 histogram->Add(10); in TEST_P() 177 histogram->Add(50); in TEST_P() 179 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P() 186 samples = histogram->SnapshotDelta(); in TEST_P() [all …]
|
/external/libchrome/base/android/ |
D | record_histogram.cc | 32 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString() argument 33 std::string params_str = histogram->histogram_name(); in HistogramConstructionParamsToString() 34 switch (histogram->GetHistogramType()) { in HistogramConstructionParamsToString() 39 Histogram* hist = static_cast<Histogram*>(histogram); in HistogramConstructionParamsToString() 56 HistogramBase* histogram) { in JNI_RecordHistogram_CheckHistogramArgs() argument 61 DCHECK(histogram->HasConstructionArguments(expected_min, expected_max, in JNI_RecordHistogram_CheckHistogramArgs() 65 << HistogramConstructionParamsToString(histogram); in JNI_RecordHistogram_CheckHistogramArgs() 72 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in JNI_RecordHistogram_BooleanHistogram() local 73 if (histogram) in JNI_RecordHistogram_BooleanHistogram() 74 return histogram; in JNI_RecordHistogram_BooleanHistogram() [all …]
|
/external/cronet/stable/base/android/ |
D | native_uma_recorder.cc | 34 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString() argument 35 std::string params_str = histogram->histogram_name(); in HistogramConstructionParamsToString() 36 switch (histogram->GetHistogramType()) { in HistogramConstructionParamsToString() 41 Histogram* hist = static_cast<Histogram*>(histogram); in HistogramConstructionParamsToString() 65 HistogramBase* histogram) { in CheckHistogramArgs() argument 70 DCHECK(histogram->HasConstructionArguments(expected_min, expected_max, in CheckHistogramArgs() 74 << HistogramConstructionParamsToString(histogram); in CheckHistogramArgs() 81 HistogramBase* histogram = HistogramFromHint(j_histogram_hint); in BooleanHistogram() local 82 if (histogram) in BooleanHistogram() 83 return histogram; in BooleanHistogram() [all …]
|
/external/cronet/tot/base/android/ |
D | native_uma_recorder.cc | 34 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString() argument 35 std::string params_str = histogram->histogram_name(); in HistogramConstructionParamsToString() 36 switch (histogram->GetHistogramType()) { in HistogramConstructionParamsToString() 41 Histogram* hist = static_cast<Histogram*>(histogram); in HistogramConstructionParamsToString() 65 HistogramBase* histogram) { in CheckHistogramArgs() argument 70 DCHECK(histogram->HasConstructionArguments(expected_min, expected_max, in CheckHistogramArgs() 74 << HistogramConstructionParamsToString(histogram); in CheckHistogramArgs() 81 HistogramBase* histogram = HistogramFromHint(j_histogram_hint); in BooleanHistogram() local 82 if (histogram) in BooleanHistogram() 83 return histogram; in BooleanHistogram() [all …]
|
/external/cronet/stable/base/test/metrics/ |
D | histogram_tester.cc | 26 for (const auto* const histogram : StatisticsRecorder::GetHistograms()) { in HistogramTester() local 27 histograms_snapshot_[histogram->histogram_name()] = in HistogramTester() 28 histogram->SnapshotSamples(); in HistogramTester() 39 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectUniqueSample() local 40 if (histogram) { in ExpectUniqueSample() 43 GetBucketCountForSamples(*histogram, sample, &actual_bucket_count, in ExpectUniqueSample() 53 << SnapshotToString(*histogram) << "\n" in ExpectUniqueSample() 77 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectBucketCount() local 78 if (histogram) { in ExpectBucketCount() 80 GetBucketCountForSamples(*histogram, sample, &actual_count, in ExpectBucketCount() [all …]
|
/external/cronet/tot/base/test/metrics/ |
D | histogram_tester.cc | 26 for (const auto* const histogram : StatisticsRecorder::GetHistograms()) { in HistogramTester() local 27 histograms_snapshot_[histogram->histogram_name()] = in HistogramTester() 28 histogram->SnapshotSamples(); in HistogramTester() 39 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectUniqueSample() local 40 if (histogram) { in ExpectUniqueSample() 43 GetBucketCountForSamples(*histogram, sample, &actual_bucket_count, in ExpectUniqueSample() 53 << SnapshotToString(*histogram) << "\n" in ExpectUniqueSample() 77 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectBucketCount() local 78 if (histogram) { in ExpectBucketCount() 80 GetBucketCountForSamples(*histogram, sample, &actual_count, in ExpectBucketCount() [all …]
|
/external/cronet/stable/base/android/javatests/src/org/chromium/base/metrics/ |
D | RecordHistogramTest.java | 29 String histogram = "HelloWorld.BooleanMetric"; in testRecordBooleanHistogram() local 30 HistogramDelta falseCount = new HistogramDelta(histogram, 0); in testRecordBooleanHistogram() 31 HistogramDelta trueCount = new HistogramDelta(histogram, 1); in testRecordBooleanHistogram() 35 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 39 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 43 RecordHistogram.recordBooleanHistogram(histogram, false); in testRecordBooleanHistogram() 52 String histogram = "HelloWorld.EnumeratedMetric"; in testRecordEnumeratedHistogram() local 53 HistogramDelta zeroCount = new HistogramDelta(histogram, 0); in testRecordEnumeratedHistogram() 54 HistogramDelta oneCount = new HistogramDelta(histogram, 1); in testRecordEnumeratedHistogram() 55 HistogramDelta twoCount = new HistogramDelta(histogram, 2); in testRecordEnumeratedHistogram() [all …]
|
/external/cronet/tot/base/android/javatests/src/org/chromium/base/metrics/ |
D | RecordHistogramTest.java | 29 String histogram = "HelloWorld.BooleanMetric"; in testRecordBooleanHistogram() local 30 HistogramDelta falseCount = new HistogramDelta(histogram, 0); in testRecordBooleanHistogram() 31 HistogramDelta trueCount = new HistogramDelta(histogram, 1); in testRecordBooleanHistogram() 35 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 39 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 43 RecordHistogram.recordBooleanHistogram(histogram, false); in testRecordBooleanHistogram() 52 String histogram = "HelloWorld.EnumeratedMetric"; in testRecordEnumeratedHistogram() local 53 HistogramDelta zeroCount = new HistogramDelta(histogram, 0); in testRecordEnumeratedHistogram() 54 HistogramDelta oneCount = new HistogramDelta(histogram, 1); in testRecordEnumeratedHistogram() 55 HistogramDelta twoCount = new HistogramDelta(histogram, 2); in testRecordEnumeratedHistogram() [all …]
|
/external/webrtc/modules/audio_coding/neteq/ |
D | histogram_unittest.cc | 20 Histogram histogram(65, 32440); in TEST() local 21 histogram.Reset(); in TEST() 22 const auto& buckets = histogram.buckets(); in TEST() 34 Histogram histogram(10, 32440); in TEST() local 35 histogram.Reset(); in TEST() 36 const std::vector<int> before = histogram.buckets(); in TEST() 38 histogram.Add(index); in TEST() 39 const std::vector<int> after = histogram.buckets(); in TEST() 49 Histogram histogram(10, 32440); in TEST() local 50 histogram.Reset(); in TEST() [all …]
|
/external/libchrome/base/android/javatests/src/org/chromium/base/metrics/ |
D | RecordHistogramTest.java | 37 String histogram = "HelloWorld.BooleanMetric"; in testRecordBooleanHistogram() local 38 HistogramDelta falseCount = new HistogramDelta(histogram, 0); in testRecordBooleanHistogram() 39 HistogramDelta trueCount = new HistogramDelta(histogram, 1); in testRecordBooleanHistogram() 43 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 47 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 51 RecordHistogram.recordBooleanHistogram(histogram, false); in testRecordBooleanHistogram() 62 String histogram = "HelloWorld.EnumeratedMetric"; in testRecordEnumeratedHistogram() local 63 HistogramDelta zeroCount = new HistogramDelta(histogram, 0); in testRecordEnumeratedHistogram() 64 HistogramDelta oneCount = new HistogramDelta(histogram, 1); in testRecordEnumeratedHistogram() 65 HistogramDelta twoCount = new HistogramDelta(histogram, 2); in testRecordEnumeratedHistogram() [all …]
|
/external/cronet/stable/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | HistogramWatcher.java | 71 public static HistogramWatcher newSingleRecordWatcher(String histogram, boolean value) { in newSingleRecordWatcher() argument 72 return newBuilder().expectBooleanRecord(histogram, value).build(); in newSingleRecordWatcher() 79 public static HistogramWatcher newSingleRecordWatcher(String histogram, int value) { in newSingleRecordWatcher() argument 80 return newBuilder().expectIntRecord(histogram, value).build(); in newSingleRecordWatcher() 87 public static HistogramWatcher newSingleRecordWatcher(String histogram) { in newSingleRecordWatcher() argument 88 return newBuilder().expectAnyRecord(histogram).build(); in newSingleRecordWatcher() 115 public Builder expectBooleanRecord(String histogram, boolean value) { in expectBooleanRecord() argument 116 return expectBooleanRecordTimes(histogram, value, 1); in expectBooleanRecord() 123 public Builder expectBooleanRecordTimes(String histogram, boolean value, int times) { in expectBooleanRecordTimes() argument 124 return expectIntRecordTimes(histogram, value ? 1 : 0, times); in expectBooleanRecordTimes() [all …]
|
/external/cronet/tot/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | HistogramWatcher.java | 71 public static HistogramWatcher newSingleRecordWatcher(String histogram, boolean value) { in newSingleRecordWatcher() argument 72 return newBuilder().expectBooleanRecord(histogram, value).build(); in newSingleRecordWatcher() 79 public static HistogramWatcher newSingleRecordWatcher(String histogram, int value) { in newSingleRecordWatcher() argument 80 return newBuilder().expectIntRecord(histogram, value).build(); in newSingleRecordWatcher() 87 public static HistogramWatcher newSingleRecordWatcher(String histogram) { in newSingleRecordWatcher() argument 88 return newBuilder().expectAnyRecord(histogram).build(); in newSingleRecordWatcher() 115 public Builder expectBooleanRecord(String histogram, boolean value) { in expectBooleanRecord() argument 116 return expectBooleanRecordTimes(histogram, value, 1); in expectBooleanRecord() 123 public Builder expectBooleanRecordTimes(String histogram, boolean value, int times) { in expectBooleanRecordTimes() argument 124 return expectIntRecordTimes(histogram, value ? 1 : 0, times); in expectBooleanRecordTimes() [all …]
|