Searched refs:GlobalHistogramAllocator (Results 1 – 10 of 10) sorted by relevance
/external/libchrome/base/metrics/ |
D | persistent_histogram_allocator_unittest.cc | 35 GlobalHistogramAllocator::ReleaseForTesting(); in CreatePersistentHistogramAllocator() 37 GlobalHistogramAllocator::CreateWithPersistentMemory( in CreatePersistentHistogramAllocator() 40 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator() 45 GlobalHistogramAllocator::ReleaseForTesting(); in DestroyPersistentHistogramAllocator() 136 FilePath path = GlobalHistogramAllocator::ConstructFilePath(dir_path, "bar"); in TEST_F() 143 GlobalHistogramAllocator::ParseFilePath(path, &name, nullptr, nullptr)); in TEST_F() 145 GlobalHistogramAllocator::ParseFilePath(path, nullptr, &stamp, nullptr)); in TEST_F() 147 GlobalHistogramAllocator::ParseFilePath(path, nullptr, nullptr, &pid)); in TEST_F() 149 path = GlobalHistogramAllocator::ConstructFilePathForUploadDir( in TEST_F() 153 GlobalHistogramAllocator::ParseFilePath(path, &name, &stamp, &pid)); in TEST_F() [all …]
|
D | persistent_histogram_allocator.cc | 354 DCHECK_EQ(this, GlobalHistogramAllocator::Get()); in AllocateHistogram() 628 DCHECK_NE(GlobalHistogramAllocator::Get(), this); in GetOrCreateStatisticsRecorderHistogram() 654 GlobalHistogramAllocator::~GlobalHistogramAllocator() = default; 657 void GlobalHistogramAllocator::CreateWithPersistentMemory( in CreateWithPersistentMemory() 664 new GlobalHistogramAllocator(std::make_unique<PersistentMemoryAllocator>( in CreateWithPersistentMemory() 669 void GlobalHistogramAllocator::CreateWithLocalMemory( in CreateWithLocalMemory() 673 Set(WrapUnique(new GlobalHistogramAllocator( in CreateWithLocalMemory() 679 bool GlobalHistogramAllocator::CreateWithFile( in CreateWithFile() 702 Set(WrapUnique(new GlobalHistogramAllocator( in CreateWithFile() 710 bool GlobalHistogramAllocator::CreateWithActiveFile(const FilePath& base_path, in CreateWithActiveFile() [all …]
|
D | persistent_histogram_allocator.h | 335 class BASE_EXPORT GlobalHistogramAllocator 338 ~GlobalHistogramAllocator() override; 445 static void Set(std::unique_ptr<GlobalHistogramAllocator> allocator); 449 static GlobalHistogramAllocator* Get(); 455 static std::unique_ptr<GlobalHistogramAllocator> ReleaseForTesting(); 479 explicit GlobalHistogramAllocator( 500 DISALLOW_COPY_AND_ASSIGN(GlobalHistogramAllocator);
|
D | statistics_recorder_unittest.cc | 72 GlobalHistogramAllocator::CreateWithLocalMemory(kAllocatorMemorySize, 0, in StatisticsRecorderTest() 78 GlobalHistogramAllocator::ReleaseForTesting(); in ~StatisticsRecorderTest() 120 std::unique_ptr<GlobalHistogramAllocator> old_global_allocator_; 239 old_global_allocator_ = GlobalHistogramAllocator::ReleaseForTesting(); in TEST_P() 241 GlobalHistogramAllocator::CreateWithPersistentMemory( in TEST_P() 417 old_global_allocator_ = GlobalHistogramAllocator::ReleaseForTesting(); in TEST_P() 419 GlobalHistogramAllocator::CreateWithPersistentMemory( in TEST_P() 669 std::unique_ptr<GlobalHistogramAllocator> old_allocator = in TEST_P() 670 GlobalHistogramAllocator::ReleaseForTesting(); in TEST_P() 673 GlobalHistogramAllocator::CreateWithLocalMemory(kAllocatorMemorySize, 0, ""); in TEST_P() [all …]
|
D | persistent_histogram_storage.cc | 32 GlobalHistogramAllocator::CreateWithLocalMemory(kAllocSize, in PersistentHistogramStorage() 35 GlobalHistogramAllocator::Get()->CreateTrackingHistograms(allocator_name); in PersistentHistogramStorage() 39 PersistentHistogramAllocator* allocator = GlobalHistogramAllocator::Get(); in ~PersistentHistogramStorage()
|
D | sparse_histogram_unittest.cc | 62 GlobalHistogramAllocator::CreateWithLocalMemory( in CreatePersistentMemoryAllocator() 64 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentMemoryAllocator() 69 GlobalHistogramAllocator::ReleaseForTesting(); in DestroyPersistentMemoryAllocator() 254 GlobalHistogramAllocator::Get()->ClearLastCreatedReferenceForTesting(); in TEST_P()
|
D | statistics_recorder.cc | 388 if (GlobalHistogramAllocator* allocator = GlobalHistogramAllocator::Get()) in ImportGlobalPersistentHistograms()
|
D | histogram_unittest.cc | 88 GlobalHistogramAllocator::CreateWithLocalMemory( in CreatePersistentHistogramAllocator() 90 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator() 95 GlobalHistogramAllocator::ReleaseForTesting(); in DestroyPersistentHistogramAllocator()
|
D | sparse_histogram.cc | 43 PersistentHistogramAllocator* allocator = GlobalHistogramAllocator::Get(); in FactoryGet()
|
D | histogram.cc | 193 PersistentHistogramAllocator* allocator = GlobalHistogramAllocator::Get(); in Build()
|