/external/libchrome/base/metrics/ |
D | statistics_recorder_unittest.cc | 84 statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); in InitializeStatisticsRecorder() 91 delete StatisticsRecorder::top_; in UninitializeStatisticsRecorder() 92 DCHECK(!StatisticsRecorder::top_); in UninitializeStatisticsRecorder() 95 bool HasGlobalRecorder() { return StatisticsRecorder::top_ != nullptr; } in HasGlobalRecorder() 104 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges); in CreateHistogram() 108 void InitLogOnShutdown() { StatisticsRecorder::InitLogOnShutdown(); } in InitLogOnShutdown() 110 bool IsVLogInitialized() { return StatisticsRecorder::is_vlog_initialized_; } in IsVLogInitialized() 114 StatisticsRecorder::is_vlog_initialized_ = false; in ResetVLogInitialized() 119 std::unique_ptr<StatisticsRecorder> statistics_recorder_; 137 EXPECT_EQ(StatisticsRecorder::RegisterOrDeleteDuplicate(histogram), in TEST_P() [all …]
|
D | statistics_recorder.cc | 34 LazyInstance<Lock>::Leaky StatisticsRecorder::lock_; 37 StatisticsRecorder* StatisticsRecorder::top_ = nullptr; 40 bool StatisticsRecorder::is_vlog_initialized_ = false; 42 size_t StatisticsRecorder::BucketRangesHash::operator()( in operator ()() 47 bool StatisticsRecorder::BucketRangesEqual::operator()( in operator ()() 53 StatisticsRecorder::~StatisticsRecorder() { in ~StatisticsRecorder() 60 void StatisticsRecorder::EnsureGlobalRecorderWhileLocked() { in EnsureGlobalRecorderWhileLocked() 65 const StatisticsRecorder* const p = new StatisticsRecorder; in EnsureGlobalRecorderWhileLocked() 72 void StatisticsRecorder::RegisterHistogramProvider( in RegisterHistogramProvider() 80 HistogramBase* StatisticsRecorder::RegisterOrDeleteDuplicate( in RegisterOrDeleteDuplicate() [all …]
|
D | persistent_histogram_allocator_unittest.cc | 25 : statistics_recorder_(StatisticsRecorder::CreateTemporaryForTesting()) { in PersistentHistogramAllocatorTest() 48 std::unique_ptr<StatisticsRecorder> statistics_recorder_; 213 const size_t starting_sr_count = StatisticsRecorder::GetHistogramCount(); in TEST_F() 219 std::unique_ptr<StatisticsRecorder> local_sr = in TEST_F() 220 StatisticsRecorder::CreateTemporaryForTesting(); in TEST_F() 221 EXPECT_EQ(0U, StatisticsRecorder::GetHistogramCount()); in TEST_F() 231 EXPECT_EQ(1U, StatisticsRecorder::GetHistogramCount()); in TEST_F() 242 EXPECT_EQ(2U, StatisticsRecorder::GetHistogramCount()); in TEST_F() 255 EXPECT_EQ(starting_sr_count, StatisticsRecorder::GetHistogramCount()); in TEST_F() 275 StatisticsRecorder::FindHistogram(recovered->histogram_name()); in TEST_F() [all …]
|
D | statistics_recorder.h | 48 class BASE_EXPORT StatisticsRecorder { 70 ~StatisticsRecorder(); 196 static std::unique_ptr<StatisticsRecorder> CreateTemporaryForTesting() 269 StatisticsRecorder(); 284 StatisticsRecorder* previous_ = nullptr; 292 static StatisticsRecorder* top_; 298 DISALLOW_COPY_AND_ASSIGN(StatisticsRecorder);
|
D | histogram_snapshot_manager_unittest.cc | 59 : statistics_recorder_(StatisticsRecorder::CreateTemporaryForTesting()), in HistogramSnapshotManagerTest() 64 std::unique_ptr<StatisticsRecorder> statistics_recorder_; 74 StatisticsRecorder::PrepareDeltas(false, HistogramBase::kNoFlags, in TEST_F() 90 StatisticsRecorder::PrepareDeltas(false, HistogramBase::kNoFlags, in TEST_F() 106 StatisticsRecorder::PrepareDeltas(false, HistogramBase::kNoFlags, in TEST_F()
|
D | sparse_histogram_unittest.cc | 54 statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); in InitializeStatisticsRecorder() 80 std::unique_ptr<StatisticsRecorder> statistics_recorder_; 175 const StatisticsRecorder::Histograms histograms = in TEST_P() 176 StatisticsRecorder::GetHistograms(); in TEST_P() 203 const StatisticsRecorder::Histograms histograms = in TEST_P() 204 StatisticsRecorder::Sort(StatisticsRecorder::GetHistograms()); in TEST_P() 239 size_t histogram_count = StatisticsRecorder::GetHistogramCount(); in TEST_P() 245 DCHECK_EQ(histogram_count, StatisticsRecorder::GetHistogramCount()); in TEST_P() 266 DCHECK_EQ(histogram_count, StatisticsRecorder::GetHistogramCount()); in TEST_P() 272 DCHECK_EQ(histogram_count, StatisticsRecorder::GetHistogramCount()); in TEST_P()
|
D | histogram_delta_serialization_unittest.cc | 17 std::unique_ptr<StatisticsRecorder> statistic_recorder( in TEST() 18 StatisticsRecorder::CreateTemporaryForTesting()); in TEST()
|
D | sparse_histogram.cc | 28 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in FactoryGet() 33 StatisticsRecorder::ShouldRecordHistogram(HashMetricName(name)); in FactoryGet() 64 histogram = StatisticsRecorder::RegisterOrDeleteDuplicate( in FactoryGet()
|
D | histogram_base.cc | 170 StatisticsRecorder::OnSampleCallback cb = in FindAndRunCallback() 171 StatisticsRecorder::FindCallback(histogram_name()); in FindAndRunCallback()
|
D | persistent_histogram_allocator.cc | 548 StatisticsRecorder::RegisterOrDeleteDuplicateRanges( in CreateHistogram() 632 StatisticsRecorder::FindHistogram(histogram->histogram_name()); in GetOrCreateStatisticsRecorderHistogram() 651 return StatisticsRecorder::RegisterOrDeleteDuplicate(existing); in GetOrCreateStatisticsRecorderHistogram() 896 size_t existing = StatisticsRecorder::GetHistogramCount(); in Set() 923 StatisticsRecorder::ForgetHistogramForTesting(data->name); in ReleaseForTesting() 1004 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram.release()); in ImportHistogramsToStatisticsRecorder()
|
D | histogram_delta_serialization.cc | 51 StatisticsRecorder::PrepareDeltas( in PrepareAndSerializeDeltas()
|
D | histogram_base_unittest.cc | 31 statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); in ResetStatisticsRecorder() 35 std::unique_ptr<StatisticsRecorder> statistics_recorder_;
|
D | histogram.cc | 160 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name_); in Build() 165 StatisticsRecorder::ShouldRecordHistogram(HashMetricName(name_)); in Build() 171 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(created_ranges); in Build() 222 histogram = StatisticsRecorder::RegisterOrDeleteDuplicate( in Build()
|
D | histogram_unittest.cc | 80 statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); in InitializeStatisticsRecorder() 104 std::unique_ptr<StatisticsRecorder> statistics_recorder_; 828 StatisticsRecorder::SetRecordChecker(std::move(record_checker)); in TEST_P()
|
D | persistent_histogram_allocator.h | 476 friend class StatisticsRecorder;
|
D | histogram.h | 278 friend class StatisticsRecorder; // To allow it to delete duplicates. variable
|
/external/libchrome/base/test/metrics/ |
D | histogram_tester.cc | 24 for (const auto* const histogram : StatisticsRecorder::GetHistograms()) { in HistogramTester() 36 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectUniqueSample() 51 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectBucketCount() 63 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in ExpectTotalCount() 98 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in GetBucketCount() 129 for (const HistogramBase* histogram : StatisticsRecorder::GetHistograms()) { in GetTotalCountsForPrefix() 147 HistogramBase* histogram = StatisticsRecorder::FindHistogram(histogram_name); in GetHistogramSamplesSinceCreation() 169 for (const auto* const histogram : StatisticsRecorder::GetHistograms()) { in GetAllHistogramsRecorded()
|
/external/libchrome/base/android/ |
D | statistics_recorder_android.cc | 24 env, base::StatisticsRecorder::ToJSON( in JNI_StatisticsRecorderAndroid_ToJson()
|
D | record_histogram.cc | 317 HistogramBase* histogram = StatisticsRecorder::FindHistogram( in JNI_RecordHistogram_GetHistogramValueCountForTesting() 332 HistogramBase* histogram = StatisticsRecorder::FindHistogram( in JNI_RecordHistogram_GetHistogramTotalCountForTesting()
|
/external/libchrome/libchrome_tools/patch/ |
D | virtual_destructor.patch | 37 @@ -67,6 +67,7 @@ class BASE_EXPORT StatisticsRecorder {
|
/external/libchrome/base/task_scheduler/ |
D | scheduler_worker_pool_impl_unittest.cc | 582 std::unique_ptr<StatisticsRecorder> statistics_recorder_ = 583 StatisticsRecorder::CreateTemporaryForTesting();
|
D | task_tracker_unittest.cc | 1311 auto statistics_recorder = StatisticsRecorder::CreateTemporaryForTesting(); in TEST()
|