Home
last modified time | relevance | path

Searched refs:memory_allocator_ (Results 1 – 25 of 41) sorted by relevance

12

/aosp_15_r20/external/libchrome/base/metrics/
H A Dpersistent_histogram_allocator.cc274 : memory_allocator_(std::move(memory)), in PersistentHistogramAllocator()
275 sparse_histogram_data_manager_(memory_allocator_.get()) {} in PersistentHistogramAllocator()
287 memory_allocator_->GetAsObject<PersistentHistogramData>(ref); in GetHistogram()
288 const size_t length = memory_allocator_->GetAllocSize(ref); in GetHistogram()
321 if (memory_allocator_->IsCorrupt()) in AllocateHistogram()
331 memory_allocator_->New<PersistentHistogramData>( in AllocateHistogram()
364 memory_allocator_->Allocate(ranges_bytes, kTypeIdRangesArray); in AllocateHistogram()
367 memory_allocator_->GetAsArray<HistogramBase::Sample>( in AllocateHistogram()
379 DCHECK_EQ(kTypeIdRangesArray, memory_allocator_->GetType(ranges_ref)); in AllocateHistogram()
413 memory_allocator_->GetAsReference(histogram_data); in AllocateHistogram()
[all …]
H A Dpersistent_histogram_allocator.h218 return memory_allocator_.get(); in memory_allocator()
223 uint64_t Id() const { return memory_allocator_->Id(); } in Id()
224 const char* Name() const { return memory_allocator_->Name(); } in Name()
225 const void* data() const { return memory_allocator_->data(); } in data()
226 size_t length() const { return memory_allocator_->length(); } in length()
227 size_t size() const { return memory_allocator_->size(); } in size()
228 size_t used() const { return memory_allocator_->used(); } in used()
318 std::unique_ptr<PersistentMemoryAllocator> memory_allocator_; variable
/aosp_15_r20/external/grpc-grpc/test/core/promise/
H A Dpipe_test.cc46 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::PipeTest
71 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
96 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
121 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
157 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
181 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
211 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
243 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
273 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
303 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
[all …]
H A Darena_promise_test.cc35 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::ArenaPromiseTest
40 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
48 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
60 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
70 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
79 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
H A Dfor_each_test.cc45 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::ForEachTest
79 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
182 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
233 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
H A Dmap_pipe_test.cc63 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::MapPipeTest
102 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
142 MakeScopedArena(1024, &memory_allocator_)); in TEST_F()
/aosp_15_r20/external/cronet/base/metrics/
H A Dpersistent_histogram_allocator.cc321 : memory_allocator_(std::move(memory)), in PersistentHistogramAllocator()
322 sparse_histogram_data_manager_(memory_allocator_.get()) {} in PersistentHistogramAllocator()
334 memory_allocator_->GetAsObject<PersistentHistogramData>(ref); in GetHistogram()
335 const size_t length = memory_allocator_->GetAllocSize(ref); in GetHistogram()
368 if (memory_allocator_->IsCorrupt()) in AllocateHistogram()
378 memory_allocator_->New<PersistentHistogramData>( in AllocateHistogram()
420 memory_allocator_->Allocate(ranges_bytes, kTypeIdRangesArray); in AllocateHistogram()
423 memory_allocator_->GetAsArray<HistogramBase::Sample>( in AllocateHistogram()
435 DCHECK_EQ(kTypeIdRangesArray, memory_allocator_->GetType(ranges_ref)); in AllocateHistogram()
469 memory_allocator_->GetAsReference(histogram_data); in AllocateHistogram()
[all …]
H A Dpersistent_histogram_allocator.h228 return memory_allocator_.get(); in memory_allocator()
233 uint64_t Id() const { return memory_allocator_->Id(); } in Id()
234 const char* Name() const { return memory_allocator_->Name(); } in Name()
235 const void* data() const { return memory_allocator_->data(); } in data()
236 size_t length() const { return memory_allocator_->length(); } in length()
237 size_t size() const { return memory_allocator_->size(); } in size()
238 size_t used() const { return memory_allocator_->used(); } in used()
338 std::unique_ptr<PersistentMemoryAllocator> memory_allocator_; variable
/aosp_15_r20/external/grpc-grpc/test/core/resource_quota/
H A Darena_test.cc100 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::ArenaTest
106 Arena::Create(1, &memory_allocator_)->Destroy(); in TEST_F()
111 Arena* arena = Arena::Create(1, &memory_allocator_); in TEST_F()
121 args.arena = Arena::Create(1024, &memory_allocator_); in TEST_F()
151 args.arena = Arena::Create(1024, &memory_allocator_); in TEST_F()
200 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
218 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
232 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
241 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
257 args.arena = Arena::Create(1024, &memory_allocator_); in TEST_F()
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/gensrcs/external/libchrome/base/metrics/
Dpersistent_histogram_allocator.h221 return memory_allocator_.get(); in memory_allocator()
226 uint64_t Id() const { return memory_allocator_->Id(); } in Id()
227 const char* Name() const { return memory_allocator_->Name(); } in Name()
228 const void* data() const { return memory_allocator_->data(); } in data()
229 size_t length() const { return memory_allocator_->length(); } in length()
230 size_t size() const { return memory_allocator_->size(); } in size()
231 size_t used() const { return memory_allocator_->used(); } in used()
321 std::unique_ptr<PersistentMemoryAllocator> memory_allocator_; variable
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/3/external/libchrome/base/metrics/
Dpersistent_histogram_allocator.h221 return memory_allocator_.get(); in memory_allocator()
226 uint64_t Id() const { return memory_allocator_->Id(); } in Id()
227 const char* Name() const { return memory_allocator_->Name(); } in Name()
228 const void* data() const { return memory_allocator_->data(); } in data()
229 size_t length() const { return memory_allocator_->length(); } in length()
230 size_t size() const { return memory_allocator_->size(); } in size()
231 size_t used() const { return memory_allocator_->used(); } in used()
321 std::unique_ptr<PersistentMemoryAllocator> memory_allocator_; variable
/aosp_15_r20/external/grpc-grpc/test/core/gprpp/
H A Dchunked_vector_test.cc36 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::testing::ChunkedVectorTest
41 auto arena = MakeScopedArena(kInitialArenaSize, &memory_allocator_); in TEST_F()
47 auto arena = MakeScopedArena(kInitialArenaSize, &memory_allocator_); in TEST_F()
89 auto arena = MakeScopedArena(kInitialArenaSize, &memory_allocator_); in TEST_F()
121 auto arena = MakeScopedArena(kInitialArenaSize, &memory_allocator_); in TEST_F()
153 auto arena = MakeScopedArena(kInitialArenaSize, &memory_allocator_); in TEST_F()
163 auto arena = MakeScopedArena(kInitialArenaSize, &memory_allocator_); in TEST_F()
/aosp_15_r20/external/grpc-grpc/test/core/transport/
H A Dmetadata_map_test.cc61 MemoryAllocator memory_allocator_ = MemoryAllocator( member in grpc_core::testing::MetadataMapTest
66 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
71 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
76 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
115 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
123 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
137 auto arena = MakeScopedArena(1024, &memory_allocator_); in TEST_F()
/aosp_15_r20/external/cronet/components/metrics/
H A Dpersistent_synthetic_trial_observer_unittest.cc25 memory_allocator_ = std::make_unique<base::LocalPersistentMemoryAllocator>( in SetUp()
28 memory_allocator_.get()); in SetUp()
37 memory_allocator_.get()); in TearDown()
44 *memory_allocator_, &profile); in GetSystemProfile()
50 std::unique_ptr<base::PersistentMemoryAllocator> memory_allocator_; member in metrics::PersistentSyntheticTrialObserverTest
H A Dpersistent_system_profile_unittest.cc30 memory_allocator_ = std::make_unique<base::LocalPersistentMemoryAllocator>( in SetUp()
33 memory_allocator_.get()); in SetUp()
34 persistent_profile_.RegisterPersistentAllocator(memory_allocator_.get()); in SetUp()
38 persistent_profile_.DeregisterPersistentAllocator(memory_allocator_.get()); in TearDown()
40 memory_allocator_.reset(); in TearDown()
57 return memory_allocator_.get(); in memory_allocator()
64 std::unique_ptr<base::PersistentMemoryAllocator> memory_allocator_; member in metrics::PersistentSystemProfileTest
/aosp_15_r20/external/grpc-grpc/test/core/channel/
H A Dcall_tracer_test.cc41 memory_allocator_ = new MemoryAllocator( in SetUp()
44 arena_ = Arena::Create(1024, memory_allocator_); in SetUp()
49 delete memory_allocator_; in TearDown()
52 MemoryAllocator* memory_allocator_ = nullptr; member in grpc_core::__anona173fcf90111::CallTracerTest
/aosp_15_r20/external/grpc-grpc/src/core/ext/transport/chaotic_good/server/
H A Dchaotic_good_server.h113 memory_allocator_; variable
122 memory_allocator_; variable
123 ScopedArenaPtr arena_ = MakeScopedArena(1024, memory_allocator_.get());
168 memory_allocator_ = variable
H A Dchaotic_good_server.cc152 : memory_allocator_(listener->memory_allocator_), listener_(listener) { in ActiveConnection()
211 : memory_allocator_(connection->memory_allocator_), in HandshakingState()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/gpu/
H A Dbuffer_allocations.h43 memory_allocator_(memory_allocator) {} in BufferAllocations()
51 return memory_allocator_; in memory_allocator()
91 se::DeviceMemoryAllocator* memory_allocator_; variable
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/
H A Dbackend.h90 return memory_allocator_.get(); in memory_allocator()
93 return memory_allocator_; in shared_memory_allocator()
186 std::shared_ptr<se::StreamExecutorMemoryAllocator> memory_allocator_; variable
/aosp_15_r20/external/executorch/extension/module/
H A Dmodule.cpp45 memory_allocator_(std::make_unique<MallocMemoryAllocator>()), in Module()
57 memory_allocator_( in Module()
73 memory_allocator_( in Module()
152 memory_allocator_.get(), in load_method()
/aosp_15_r20/external/grpc-grpc/src/core/ext/transport/chaotic_good/client/
H A Dchaotic_good_connector.h83 grpc_event_engine::experimental::MemoryAllocator memory_allocator_ = variable
86 ScopedArenaPtr arena_ = MakeScopedArena(1024, &memory_allocator_);
/aosp_15_r20/external/grpc-grpc/test/cpp/microbenchmarks/
H A Dbm_chttp2_transport.cc199 arena_ = grpc_core::Arena::Create(4096, &memory_allocator_); in Stream()
215 arena_ = grpc_core::Arena::Create(4096, &memory_allocator_); in Init()
249 grpc_core::MemoryAllocator memory_allocator_ = member in Stream
/aosp_15_r20/external/grpc-grpc/src/core/lib/resource_quota/
H A Darena.cc92 memory_allocator_->Release(total_allocated_.load(std::memory_order_relaxed)); in Destroy()
106 memory_allocator_->Reserve(alloc_size); in AllocZone()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/resource_quota/
Darena.cc92 memory_allocator_->Release(total_allocated_.load(std::memory_order_relaxed)); in Destroy()
106 memory_allocator_->Reserve(alloc_size); in AllocZone()

12