Home
last modified time | relevance | path

Searched refs:GlobalHistogramAllocator (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/base/metrics/
Dpersistent_histogram_allocator_unittest.cc35 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 …]
Dpersistent_histogram_allocator.cc354 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 …]
Dpersistent_histogram_allocator.h335 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);
Dstatistics_recorder_unittest.cc72 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 …]
Dpersistent_histogram_storage.cc32 GlobalHistogramAllocator::CreateWithLocalMemory(kAllocSize, in PersistentHistogramStorage()
35 GlobalHistogramAllocator::Get()->CreateTrackingHistograms(allocator_name); in PersistentHistogramStorage()
39 PersistentHistogramAllocator* allocator = GlobalHistogramAllocator::Get(); in ~PersistentHistogramStorage()
Dsparse_histogram_unittest.cc62 GlobalHistogramAllocator::CreateWithLocalMemory( in CreatePersistentMemoryAllocator()
64 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentMemoryAllocator()
69 GlobalHistogramAllocator::ReleaseForTesting(); in DestroyPersistentMemoryAllocator()
254 GlobalHistogramAllocator::Get()->ClearLastCreatedReferenceForTesting(); in TEST_P()
Dstatistics_recorder.cc388 if (GlobalHistogramAllocator* allocator = GlobalHistogramAllocator::Get()) in ImportGlobalPersistentHistograms()
Dhistogram_unittest.cc88 GlobalHistogramAllocator::CreateWithLocalMemory( in CreatePersistentHistogramAllocator()
90 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator()
95 GlobalHistogramAllocator::ReleaseForTesting(); in DestroyPersistentHistogramAllocator()
Dsparse_histogram.cc43 PersistentHistogramAllocator* allocator = GlobalHistogramAllocator::Get(); in FactoryGet()
Dhistogram.cc193 PersistentHistogramAllocator* allocator = GlobalHistogramAllocator::Get(); in Build()