Home
last modified time | relevance | path

Searched refs:PersistentMemoryAllocator (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/base/metrics/
Dpersistent_memory_allocator.cc96 const uint32_t PersistentMemoryAllocator::kAllocAlignment = 8;
100 struct PersistentMemoryAllocator::BlockHeader {
111 struct PersistentMemoryAllocator::SharedMetadata {
144 const PersistentMemoryAllocator::Reference
145 PersistentMemoryAllocator::kReferenceQueue =
148 const base::FilePath::CharType PersistentMemoryAllocator::kFileExtension[] =
152 PersistentMemoryAllocator::Iterator::Iterator( in Iterator()
153 const PersistentMemoryAllocator* allocator) in Iterator()
156 PersistentMemoryAllocator::Iterator::Iterator( in Iterator()
157 const PersistentMemoryAllocator* allocator, in Iterator()
[all …]
Dpersistent_histogram_allocator.h44 PersistentMemoryAllocator* allocator);
59 T* GetAsObject(PersistentMemoryAllocator::Reference ref) { in GetAsObject()
79 PersistentMemoryAllocator* allocator_;
82 PersistentMemoryAllocator::Iterator record_iterator_;
121 PersistentMemoryAllocator::Reference GetNext();
125 PersistentMemoryAllocator::Reference CreateNew(HistogramBase::Sample value);
134 T* GetAsObject(PersistentMemoryAllocator::Reference ref) { in GetAsObject()
160 std::vector<PersistentMemoryAllocator::Reference> records_;
165 std::vector<PersistentMemoryAllocator::Reference> found_;
177 using Reference = PersistentMemoryAllocator::Reference;
[all …]
Dpersistent_memory_allocator.h95 class BASE_EXPORT PersistentMemoryAllocator {
142 explicit Iterator(const PersistentMemoryAllocator* allocator);
149 Iterator(const PersistentMemoryAllocator* allocator,
220 const PersistentMemoryAllocator* allocator_;
286 PersistentMemoryAllocator(void* base, size_t size, size_t page_size,
289 virtual ~PersistentMemoryAllocator();
619 PersistentMemoryAllocator(Memory memory, size_t size, size_t page_size,
658 const_cast<const PersistentMemoryAllocator*>(this)->GetBlock( in GetBlock()
668 const_cast<const PersistentMemoryAllocator*>(this)->GetBlockData( in GetBlockData()
685 DISALLOW_COPY_AND_ASSIGN(PersistentMemoryAllocator);
[all …]
Dpersistent_memory_allocator_unittest.cc46 typedef PersistentMemoryAllocator::Reference Reference;
80 allocator_.reset(new PersistentMemoryAllocator( in SetUp()
90 PersistentMemoryAllocator::Iterator iter(allocator_.get()); in CountIterables()
100 return PersistentMemoryAllocator::kAllocAlignment; in GetAllocAlignment()
105 std::unique_ptr<PersistentMemoryAllocator> allocator_;
116 EXPECT_EQ(PersistentMemoryAllocator::MEMORY_INITIALIZED, in TEST_F()
120 PersistentMemoryAllocator::MemoryInfo meminfo0; in TEST_F()
136 PersistentMemoryAllocator::MemoryInfo meminfo1; in TEST_F()
154 PersistentMemoryAllocator::Iterator iter1a(allocator_.get()); in TEST_F()
176 PersistentMemoryAllocator::MemoryInfo meminfo2; in TEST_F()
[all …]
Dpersistent_sample_map.h50 static PersistentMemoryAllocator::Reference GetNextPersistentRecord(
51 PersistentMemoryAllocator::Iterator& iterator,
56 static PersistentMemoryAllocator::Reference CreatePersistentRecord(
57 PersistentMemoryAllocator* allocator,
Dpersistent_sample_map.cc161 PersistentMemoryAllocator::Reference
163 PersistentMemoryAllocator::Iterator& iterator, in GetNextPersistentRecord()
174 PersistentMemoryAllocator::Reference
176 PersistentMemoryAllocator* allocator, in CreatePersistentRecord()
190 PersistentMemoryAllocator::Reference ref = allocator->GetAsReference(record); in CreatePersistentRecord()
231 PersistentMemoryAllocator::Reference ref = records_->CreateNew(value); in GetOrCreateSampleCountStorage()
270 PersistentMemoryAllocator::Reference ref; in ImportSamples()
Dpersistent_histogram_allocator_unittest.cc50 PersistentMemoryAllocator* allocator_ = nullptr;
57 PersistentMemoryAllocator::MemoryInfo meminfo0; in TEST_F()
65 PersistentMemoryAllocator::MemoryInfo meminfo1; in TEST_F()
73 PersistentMemoryAllocator::MemoryInfo meminfo2; in TEST_F()
81 PersistentMemoryAllocator::MemoryInfo meminfo3; in TEST_F()
92 PersistentMemoryAllocator::MemoryInfo meminfo4; in TEST_F()
96 PersistentMemoryAllocator::Iterator iter(allocator_); in TEST_F()
107 std::make_unique<PersistentMemoryAllocator>( in TEST_F()
260 std::make_unique<PersistentMemoryAllocator>( in TEST_F()
307 std::make_unique<PersistentMemoryAllocator>( in TEST_F()
[all …]
Dpersistent_histogram_allocator.cc103 PersistentMemoryAllocator* allocator) in PersistentSparseHistogramDataManager()
160 PersistentMemoryAllocator::Reference ref = in LoadRecords()
205 PersistentMemoryAllocator::Reference PersistentSampleMapRecords::GetNext() { in GetNext()
223 PersistentMemoryAllocator::Reference PersistentSampleMapRecords::CreateNew( in CreateNew()
245 PersistentMemoryAllocator::Reference ranges_ref;
263 PersistentMemoryAllocator::Reference ref; in GetNextWithIgnore()
273 std::unique_ptr<PersistentMemoryAllocator> memory) in PersistentHistogramAllocator()
358 PersistentMemoryAllocator::Reference ranges_ref = in AllocateHistogram()
375 ranges_ref = PersistentMemoryAllocator::kReferenceNull; in AllocateHistogram()
412 PersistentMemoryAllocator::Reference histogram_ref = in AllocateHistogram()
[all …]
Dfield_trial.h661 PersistentMemoryAllocator* allocator);
668 PersistentMemoryAllocator const& allocator);
734 static void AddToAllocatorWhileLocked(PersistentMemoryAllocator* allocator,
Dpersistent_histogram_storage.cc93 .AddExtension(PersistentMemoryAllocator::kFileExtension); in ~PersistentHistogramStorage()
Dsample_vector_unittest.cc374 std::atomic<PersistentMemoryAllocator::Reference> samples_ref; in TEST_F()
467 std::atomic<PersistentMemoryAllocator::Reference> samples_ref; in TEST_F()
Dsparse_histogram.cc41 PersistentMemoryAllocator::Reference histogram_ref = 0; in FactoryGet()
Dpersistent_sample_map_unittest.cc26 std::make_unique<PersistentMemoryAllocator>( in DuplicateHistogramAllocator()
Dfield_trial.cc1173 PersistentMemoryAllocator* allocator) { in DumpAllFieldTrialsToPersistentAllocator()
1185 PersistentMemoryAllocator const& allocator) { in GetAllFieldTrialsFromPersistentAllocator()
1411 PersistentMemoryAllocator* allocator, in AddToAllocatorWhileLocked()
Dsparse_histogram_unittest.cc81 PersistentMemoryAllocator* allocator_ = nullptr;
Dhistogram_unittest.cc106 PersistentMemoryAllocator* allocator_ = nullptr;
/external/libchrome/base/debug/
Dactivity_tracker.h188 using Reference = PersistentMemoryAllocator::Reference;
195 ActivityTrackerMemoryAllocator(PersistentMemoryAllocator* allocator,
226 PersistentMemoryAllocator* const allocator_;
234 PersistentMemoryAllocator::Iterator iterator_;
890 std::unique_ptr<PersistentMemoryAllocator> allocator,
951 PersistentMemoryAllocator* allocator() { return allocator_.get(); } in allocator()
1135 PersistentMemoryAllocator* allocator);
1149 ManagedActivityTracker(PersistentMemoryAllocator::Reference mem_reference,
1156 const PersistentMemoryAllocator::Reference mem_reference_;
1170 GlobalActivityTracker(std::unique_ptr<PersistentMemoryAllocator> allocator,
[all …]
Dactivity_tracker.cc74 PersistentMemoryAllocator::Reference AllocateFrom( in AllocateFrom()
75 PersistentMemoryAllocator* allocator, in AllocateFrom()
79 PersistentMemoryAllocator::Iterator iter(allocator); in AllocateFrom()
80 PersistentMemoryAllocator::Reference ref; in AllocateFrom()
171 PersistentMemoryAllocator* allocator, in ActivityTrackerMemoryAllocator()
1064 PersistentMemoryAllocator::Reference ref = allocator->GetObjectReference(); in CreateUserDataForActivity()
1138 PersistentMemoryAllocator* allocator) { in CreateFrom()
1241 PersistentMemoryAllocator::Reference mem_reference, in ManagedActivityTracker()
1257 std::unique_ptr<PersistentMemoryAllocator> allocator, in CreateWithAllocator()
1363 PersistentMemoryAllocator::Reference mem_reference; in CreateTrackerForCurrentThread()
[all …]
Dactivity_tracker_unittest.cc502 PersistentMemoryAllocator::Reference proc_data_ref = in TEST_F()
507 PersistentMemoryAllocator::Reference tracker_ref = in TEST_F()
512 PersistentMemoryAllocator::Reference user_data_ref = in TEST_F()
/external/libchrome/base/
Dfeature_list.h113 void InitializeFromSharedMemory(PersistentMemoryAllocator* allocator);
148 void AddFeaturesToAllocator(PersistentMemoryAllocator* allocator);
Dfeature_list.cc102 PersistentMemoryAllocator* allocator) { in InitializeFromSharedMemory()
105 PersistentMemoryAllocator::Iterator iter(allocator); in InitializeFromSharedMemory()
163 void FeatureList::AddFeaturesToAllocator(PersistentMemoryAllocator* allocator) { in AddFeaturesToAllocator()