Home
last modified time | relevance | path

Searched refs:StatisticsRecorder (Results 1 – 22 of 22) sorted by relevance

/external/libchrome/base/metrics/
Dstatistics_recorder_unittest.cc84 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 …]
Dstatistics_recorder.cc34 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 …]
Dpersistent_histogram_allocator_unittest.cc25 : 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 …]
Dstatistics_recorder.h48 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);
Dhistogram_snapshot_manager_unittest.cc59 : 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()
Dsparse_histogram_unittest.cc54 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()
Dhistogram_delta_serialization_unittest.cc17 std::unique_ptr<StatisticsRecorder> statistic_recorder( in TEST()
18 StatisticsRecorder::CreateTemporaryForTesting()); in TEST()
Dsparse_histogram.cc28 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); in FactoryGet()
33 StatisticsRecorder::ShouldRecordHistogram(HashMetricName(name)); in FactoryGet()
64 histogram = StatisticsRecorder::RegisterOrDeleteDuplicate( in FactoryGet()
Dhistogram_base.cc170 StatisticsRecorder::OnSampleCallback cb = in FindAndRunCallback()
171 StatisticsRecorder::FindCallback(histogram_name()); in FindAndRunCallback()
Dpersistent_histogram_allocator.cc548 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()
Dhistogram_delta_serialization.cc51 StatisticsRecorder::PrepareDeltas( in PrepareAndSerializeDeltas()
Dhistogram_base_unittest.cc31 statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); in ResetStatisticsRecorder()
35 std::unique_ptr<StatisticsRecorder> statistics_recorder_;
Dhistogram.cc160 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()
Dhistogram_unittest.cc80 statistics_recorder_ = StatisticsRecorder::CreateTemporaryForTesting(); in InitializeStatisticsRecorder()
104 std::unique_ptr<StatisticsRecorder> statistics_recorder_;
828 StatisticsRecorder::SetRecordChecker(std::move(record_checker)); in TEST_P()
Dpersistent_histogram_allocator.h476 friend class StatisticsRecorder;
Dhistogram.h278 friend class StatisticsRecorder; // To allow it to delete duplicates. variable
/external/libchrome/base/test/metrics/
Dhistogram_tester.cc24 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/
Dstatistics_recorder_android.cc24 env, base::StatisticsRecorder::ToJSON( in JNI_StatisticsRecorderAndroid_ToJson()
Drecord_histogram.cc317 HistogramBase* histogram = StatisticsRecorder::FindHistogram( in JNI_RecordHistogram_GetHistogramValueCountForTesting()
332 HistogramBase* histogram = StatisticsRecorder::FindHistogram( in JNI_RecordHistogram_GetHistogramTotalCountForTesting()
/external/libchrome/libchrome_tools/patch/
Dvirtual_destructor.patch37 @@ -67,6 +67,7 @@ class BASE_EXPORT StatisticsRecorder {
/external/libchrome/base/task_scheduler/
Dscheduler_worker_pool_impl_unittest.cc582 std::unique_ptr<StatisticsRecorder> statistics_recorder_ =
583 StatisticsRecorder::CreateTemporaryForTesting();
Dtask_tracker_unittest.cc1311 auto statistics_recorder = StatisticsRecorder::CreateTemporaryForTesting(); in TEST()