/aosp_15_r20/external/grpc-grpc/test/core/resource_quota/ |
H A D | memory_quota_test.cc | 70 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 D | bm_arena.cc | 32 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 D | bm_chttp2_hpack.cc | 73 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 D | persistent_system_profile_unittest.cc | 56 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 D | persistent_system_profile.cc | 56 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 D | persistent_system_profile.h | 35 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 D | file_metrics_provider.cc | 525 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/ |
D | framebuffer.rs | 739 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/ |
D | allocator.rs | 130 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()
|
D | view.rs | 442 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 D | persistent_histogram_allocator_unittest.cc | 51 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 D | call_filters_test.cc | 436 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 D | hpack_encoder_test.cc | 157 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 D | thready_event_engine.cc | 45 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/ |
D | thready_event_engine.cc | 45 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 D | persistent_histogram_allocator_unittest.cc | 40 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 D | client_transport_error_test.cc | 134 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 D | module.cpp | 53 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 D | cpu_executable.cc | 97 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/ |
D | arena.h | 129 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));
|
D | arena.cc | 62 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 D | arena.h | 139 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 D | arena.cc | 62 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/ |
D | storage.rs | 541 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 D | binder_transport_test.cc | 237 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);
|