Home
last modified time | relevance | path

Searched refs:memory_allocator (Results 1 – 25 of 160) sorted by relevance

1234567

/aosp_15_r20/external/grpc-grpc/test/core/resource_quota/
H A Dmemory_quota_test.cc70 auto memory_allocator = memory_quota.CreateMemoryAllocator("bar"); in TEST() local
76 auto memory_allocator = memory_quota.CreateMemoryAllocator("bar"); in TEST() local
77 auto object = memory_allocator.MakeUnique<Sized<4096>>(); in TEST()
85 auto memory_allocator = memory_quota.CreateMemoryOwner(); in TEST() local
86 auto object = memory_allocator.MakeUnique<Sized<2048>>(); in TEST()
89 memory_allocator.PostReclaimer( in TEST()
96 auto object2 = memory_allocator.MakeUnique<Sized<2048>>(); in TEST()
101 memory_allocator.PostReclaimer( in TEST()
108 auto object3 = memory_allocator.MakeUnique<Sized<2048>>(); in TEST()
115 auto memory_allocator = memory_quota.CreateMemoryAllocator("bar"); in TEST() local
[all …]
/aosp_15_r20/external/grpc-grpc/test/cpp/microbenchmarks/
H A Dbm_arena.cc32 grpc_core::MemoryAllocator memory_allocator = in BM_Arena_NoOp() local
37 Arena::Create(state.range(0), &memory_allocator)->Destroy(); in BM_Arena_NoOp()
43 grpc_core::MemoryAllocator memory_allocator = in BM_Arena_ManyAlloc() local
47 Arena* a = Arena::Create(state.range(0), &memory_allocator); in BM_Arena_ManyAlloc()
55 a = Arena::Create(state.range(0), &memory_allocator); in BM_Arena_ManyAlloc()
63 grpc_core::MemoryAllocator memory_allocator = in BM_Arena_Batch() local
68 Arena* a = Arena::Create(state.range(0), &memory_allocator); in BM_Arena_Batch()
85 grpc_core::MemoryAllocator memory_allocator = in BM_Arena_MakePooled_Small() local
89 Arena* a = Arena::Create(1024, &memory_allocator); in BM_Arena_MakePooled_Small()
98 grpc_core::MemoryAllocator memory_allocator = in BM_Arena_MakePooled3_Small() local
[all …]
H A Dbm_chttp2_hpack.cc73 grpc_core::MemoryAllocator memory_allocator = in BM_HpackEncoderEncodeDeadline() local
77 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in BM_HpackEncoderEncodeDeadline()
109 grpc_core::MemoryAllocator memory_allocator = in BM_HpackEncoderEncodeHeader() local
113 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in BM_HpackEncoderEncodeHeader()
348 grpc_core::MemoryAllocator memory_allocator = in BM_HpackParserParseHeader() local
352 auto* arena = grpc_core::Arena::Create(kArenaSize, &memory_allocator); in BM_HpackParserParseHeader()
379 arena = grpc_core::Arena::Create(kArenaSize, &memory_allocator); in BM_HpackParserParseHeader()
408 grpc_core::MemoryAllocator memory_allocator = in Generate() local
412 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in Generate()
/aosp_15_r20/external/cronet/components/metrics/
H A Dpersistent_system_profile_unittest.cc56 base::PersistentMemoryAllocator* memory_allocator() { in memory_allocator() function in metrics::PersistentSystemProfileTest
70 base::PersistentMemoryAllocator::Iterator iter(memory_allocator()); in TEST_F()
102 ASSERT_TRUE(PersistentSystemProfile::HasSystemProfile(*memory_allocator())); in TEST_F()
104 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
118 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
134 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
152 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &proto2)); in TEST_F()
167 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &fetched)); in TEST_F()
178 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &fetched)); in TEST_F()
185 PersistentSystemProfile::GetSystemProfile(*memory_allocator(), &fetched)); in TEST_F()
[all …]
H A Dpersistent_system_profile.cc56 base::PersistentMemoryAllocator* memory_allocator, in RecordAllocator() argument
58 : allocator_(memory_allocator), in RecordAllocator()
67 const base::PersistentMemoryAllocator* memory_allocator) in RecordAllocator() argument
69 const_cast<base::PersistentMemoryAllocator*>(memory_allocator)), in RecordAllocator()
283 base::PersistentMemoryAllocator* memory_allocator) { in RegisterPersistentAllocator() argument
288 RecordAllocator allocator(memory_allocator, 1); in RegisterPersistentAllocator()
294 base::PersistentMemoryAllocator* memory_allocator) { in DeregisterPersistentAllocator() argument
300 return records.allocator() == memory_allocator; in DeregisterPersistentAllocator()
369 const base::PersistentMemoryAllocator& memory_allocator) { in HasSystemProfile() argument
370 const RecordAllocator records(&memory_allocator); in HasSystemProfile()
[all …]
H A Dpersistent_system_profile.h35 base::PersistentMemoryAllocator* memory_allocator);
37 base::PersistentMemoryAllocator* memory_allocator);
57 const base::PersistentMemoryAllocator& memory_allocator);
64 const base::PersistentMemoryAllocator& memory_allocator,
81 RecordAllocator(base::PersistentMemoryAllocator* memory_allocator,
85 RecordAllocator(const base::PersistentMemoryAllocator* memory_allocator);
139 const base::PersistentMemoryAllocator& memory_allocator,
H A Dfile_metrics_provider.cc525 std::unique_ptr<base::FilePersistentMemoryAllocator> memory_allocator = in CheckAndMapMetricSource() local
530 if (memory_allocator->GetMemoryState() == in CheckAndMapMetricSource()
534 if (memory_allocator->IsCorrupt()) in CheckAndMapMetricSource()
544 memory_allocator->Cache(); in CheckAndMapMetricSource()
548 std::move(memory_allocator)); in CheckAndMapMetricSource()
561 *source->allocator->memory_allocator(), nullptr)) { in CheckAndMapMetricSource()
687 source->allocator->memory_allocator()->version()); in ProvideIndependentMetricsOnTaskRunner()
691 source->allocator->memory_allocator()->GetMemoryState()); in ProvideIndependentMetricsOnTaskRunner()
696 source->allocator->memory_allocator()->freeptr()); in ProvideIndependentMetricsOnTaskRunner()
698 source->allocator->memory_allocator()->IsFull()); in ProvideIndependentMetricsOnTaskRunner()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/vulkano/src/render_pass/
Dframebuffer.rs739 let memory_allocator = StandardMemoryAllocator::new_default(device); in simple_create() localVariable
741 AttachmentImage::new(&memory_allocator, [1024, 768], Format::R8G8B8A8_UNORM).unwrap(), in simple_create()
808 let memory_allocator = StandardMemoryAllocator::new_default(device); in attachment_format_mismatch() localVariable
810 AttachmentImage::new(&memory_allocator, [1024, 768], Format::R8_UNORM).unwrap(), in attachment_format_mismatch()
849 let memory_allocator = StandardMemoryAllocator::new_default(device); in attachment_dims_larger_than_specified_valid() localVariable
851 AttachmentImage::new(&memory_allocator, [600, 600], Format::R8G8B8A8_UNORM).unwrap(), in attachment_dims_larger_than_specified_valid()
888 let memory_allocator = StandardMemoryAllocator::new_default(device); in attachment_dims_smaller_than_specified() localVariable
890 AttachmentImage::new(&memory_allocator, [512, 700], Format::R8G8B8A8_UNORM).unwrap(), in attachment_dims_smaller_than_specified()
935 let memory_allocator = StandardMemoryAllocator::new_default(device); in multi_attachments_auto_smaller() localVariable
937 AttachmentImage::new(&memory_allocator, [256, 512], Format::R8G8B8A8_UNORM).unwrap(), in multi_attachments_auto_smaller()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/vulkano/src/buffer/
Dallocator.rs130 pub fn new(memory_allocator: A, create_info: SubbufferAllocatorCreateInfo) -> Self { in new()
138 let properties = memory_allocator.device().physical_device().properties(); in new()
157 memory_allocator, in new()
268 unsafe { &*self.state.get() }.memory_allocator.device() in device()
274 memory_allocator: A, field
357 &self.memory_allocator, in create_arena()
454 let memory_allocator = StandardMemoryAllocator::new_default(device); in reserve() localVariable
456 let buffer_allocator = SubbufferAllocator::new(memory_allocator, Default::default()); in reserve()
466 let memory_allocator = StandardMemoryAllocator::new_default(device); in capacity_increase() localVariable
468 let buffer_allocator = SubbufferAllocator::new(memory_allocator, Default::default()); in capacity_increase()
Dview.rs442 let memory_allocator = StandardMemoryAllocator::new_default(device); in create_uniform() localVariable
445 &memory_allocator, in create_uniform()
471 let memory_allocator = StandardMemoryAllocator::new_default(device); in create_storage() localVariable
474 &memory_allocator, in create_storage()
497 let memory_allocator = StandardMemoryAllocator::new_default(device); in create_storage_atomic() localVariable
500 &memory_allocator, in create_storage_atomic()
523 let memory_allocator = StandardMemoryAllocator::new_default(device); in wrong_usage() localVariable
526 &memory_allocator, in wrong_usage()
551 let memory_allocator = StandardMemoryAllocator::new_default(device); in unsupported_format() localVariable
554 &memory_allocator, in unsupported_format()
/aosp_15_r20/external/cronet/base/metrics/
H A Dpersistent_histogram_allocator_unittest.cc51 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator()
179 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
185 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
191 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
276 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
277 new_allocator->memory_allocator()->size(), 0, 0, "", in TEST_F()
331 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
332 new_allocator->memory_allocator()->size(), 0, 0, "", in TEST_F()
425 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
426 new_allocator->memory_allocator()->size(), 0, 0, "", in TEST_F()
[all …]
/aosp_15_r20/external/grpc-grpc/test/core/transport/
H A Dcall_filters_test.cc436 auto memory_allocator = in TEST() local
438 auto arena = MakeScopedArena(1024, &memory_allocator); in TEST()
496 auto memory_allocator = in TEST() local
498 auto arena = MakeScopedArena(1024, &memory_allocator); in TEST()
555 auto memory_allocator = in TEST() local
557 auto arena = MakeScopedArena(1024, &memory_allocator); in TEST()
617 auto memory_allocator = in TEST() local
619 auto arena = MakeScopedArena(1024, &memory_allocator); in TEST()
677 auto memory_allocator = in TEST() local
679 auto arena = MakeScopedArena(1024, &memory_allocator); in TEST()
[all …]
/aosp_15_r20/external/grpc-grpc/test/core/transport/chttp2/
H A Dhpack_encoder_test.cc157 grpc_core::MemoryAllocator memory_allocator = in EncodeHeaderIntoBytes() local
161 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in EncodeHeaderIntoBytes()
306 grpc_core::MemoryAllocator memory_allocator = in verify_continuation_headers() local
310 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in verify_continuation_headers()
347 grpc_core::MemoryAllocator memory_allocator = in TEST() local
351 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in TEST()
377 grpc_core::MemoryAllocator memory_allocator = in TEST() local
381 auto arena = grpc_core::MakeScopedArena(1024, &memory_allocator); in TEST()
/aosp_15_r20/external/grpc-grpc/src/core/lib/event_engine/thready_event_engine/
H A Dthready_event_engine.cc45 MemoryAllocator memory_allocator) { in CreateListener() argument
48 memory_allocator = std::move(memory_allocator)]() mutable { in CreateListener()
49 (*on_accept)(std::move(endpoint), std::move(memory_allocator)); in CreateListener()
64 const EndpointConfig& args, MemoryAllocator memory_allocator, in Connect() argument
74 addr, args, std::move(memory_allocator), timeout); in Connect()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/event_engine/thready_event_engine/
Dthready_event_engine.cc45 MemoryAllocator memory_allocator) { in CreateListener() argument
48 memory_allocator = std::move(memory_allocator)]() mutable { in CreateListener()
49 (*on_accept)(std::move(endpoint), std::move(memory_allocator)); in CreateListener()
64 const EndpointConfig& args, MemoryAllocator memory_allocator, in Connect() argument
74 addr, args, std::move(memory_allocator), timeout); in Connect()
/aosp_15_r20/external/libchrome/base/metrics/
H A Dpersistent_histogram_allocator_unittest.cc40 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator()
170 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
176 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
182 GlobalHistogramAllocator::Get()->memory_allocator()->Name()); in TEST_F()
261 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
262 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
308 const_cast<void*>(new_allocator->memory_allocator()->data()), in TEST_F()
309 new_allocator->memory_allocator()->size(), 0, 0, "", false)); in TEST_F()
/aosp_15_r20/external/grpc-grpc/test/core/transport/chaotic_good/
H A Dclient_transport_error_test.cc134 MemoryAllocator* memory_allocator() { return &allocator_; } in memory_allocator() function in grpc_core::chaotic_good::testing::ClientTransportTest
182 MakeCall(event_engine().get(), Arena::Create(8192, memory_allocator())); in TEST_F()
228 MakeCall(event_engine().get(), Arena::Create(8192, memory_allocator())); in TEST_F()
282 MakeCall(event_engine().get(), Arena::Create(8192, memory_allocator())); in TEST_F()
285 MakeCall(event_engine().get(), Arena::Create(8192, memory_allocator())); in TEST_F()
354 MakeCall(event_engine().get(), Arena::Create(8192, memory_allocator())); in TEST_F()
357 MakeCall(event_engine().get(), Arena::Create(8192, memory_allocator())); in TEST_F()
/aosp_15_r20/external/executorch/extension/module/
H A Dmodule.cpp53 std::unique_ptr<runtime::MemoryAllocator> memory_allocator, in Module() argument
58 memory_allocator ? std::move(memory_allocator) in Module()
69 std::unique_ptr<runtime::MemoryAllocator> memory_allocator, in Module() argument
74 memory_allocator ? std::move(memory_allocator) in Module()
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/service/cpu/
H A Dcpu_executable.cc97 se::DeviceMemoryAllocator* memory_allocator, int device_ordinal) { in MemoryForAllocation() argument
118 memory_allocator->Allocate(device_ordinal, buffer_size)); in MemoryForAllocation()
131 se::DeviceMemoryAllocator* memory_allocator, int device_ordinal, in CreateBufferTable() argument
141 buffers[i], MemoryForAllocation(allocation, arguments, memory_allocator, in CreateBufferTable()
345 se::DeviceMemoryAllocator* memory_allocator = run_options->allocator(); in ExecuteAsyncOnStream() local
348 CreateBufferTable(memory_allocator, stream->parent()->device_ordinal(), in ExecuteAsyncOnStream()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/resource_quota/
Darena.h129 static Arena* Create(size_t initial_size, MemoryAllocator* memory_allocator);
136 MemoryAllocator* memory_allocator);
366 MemoryAllocator* memory_allocator)
369 memory_allocator_(memory_allocator) {}
418 MemoryAllocator* memory_allocator) {
419 return ScopedArenaPtr(Arena::Create(initial_size, memory_allocator));
Darena.cc62 Arena* Arena::Create(size_t initial_size, MemoryAllocator* memory_allocator) { in Create() argument
64 Arena(initial_size, 0, memory_allocator); in Create()
68 size_t initial_size, size_t alloc_size, MemoryAllocator* memory_allocator) { in CreateWithAlloc() argument
72 Arena(initial_size, alloc_size, memory_allocator); in CreateWithAlloc()
/aosp_15_r20/external/grpc-grpc/src/core/lib/resource_quota/
H A Darena.h139 static Arena* Create(size_t initial_size, MemoryAllocator* memory_allocator);
146 MemoryAllocator* memory_allocator);
401 MemoryAllocator* memory_allocator)
404 memory_allocator_(memory_allocator) {}
455 MemoryAllocator* memory_allocator) {
456 return ScopedArenaPtr(Arena::Create(initial_size, memory_allocator));
H A Darena.cc62 Arena* Arena::Create(size_t initial_size, MemoryAllocator* memory_allocator) { in Create() argument
64 Arena(initial_size, 0, memory_allocator); in Create()
68 size_t initial_size, size_t alloc_size, MemoryAllocator* memory_allocator) { in CreateWithAlloc() argument
72 Arena(initial_size, alloc_size, memory_allocator); in CreateWithAlloc()
/aosp_15_r20/external/rust/android-crates-io/crates/vulkano/src/image/
Dstorage.rs541 let memory_allocator = StandardMemoryAllocator::new_default(device); in create() localVariable
543 &memory_allocator, in create()
558 let memory_allocator = StandardMemoryAllocator::new_default(device); in create_general_purpose_image_view() localVariable
562 &memory_allocator, in create_general_purpose_image_view()
575 let memory_allocator = StandardMemoryAllocator::new_default(device); in create_general_purpose_image_view_failed() localVariable
579 &memory_allocator, in create_general_purpose_image_view_failed()
/aosp_15_r20/external/grpc-grpc/test/core/transport/binder/
H A Dbinder_transport_test.cc237 grpc_core::MemoryAllocator memory_allocator = member
242 grpc_core::MakeScopedArena(1024, &memory_allocator);
268 grpc_core::MemoryAllocator memory_allocator = member
273 grpc_core::MakeScopedArena(1024, &memory_allocator);
296 grpc_core::MemoryAllocator memory_allocator = member
301 grpc_core::MakeScopedArena(1024, &memory_allocator);
344 grpc_core::MemoryAllocator memory_allocator = member
349 grpc_core::MakeScopedArena(1024, &memory_allocator);

1234567