#include <memory_quota.h>
Definition at line 421 of file memory_quota.h.
◆ MemoryQuota() [1/3]
grpc_core::MemoryQuota::MemoryQuota |
( |
std::string |
name | ) |
|
|
inlineexplicit |
◆ ~MemoryQuota()
grpc_core::MemoryQuota::~MemoryQuota |
( |
| ) |
|
|
inlineoverride |
◆ MemoryQuota() [2/3]
◆ MemoryQuota() [3/3]
◆ CreateMemoryAllocator()
On Endpoint creation, call CreateMemoryAllocator to create a new allocator for the endpoint. name is used to label the memory allocator in debug logs. Typically we'll want to: auto allocator = factory->CreateMemoryAllocator(peer_address_string); auto* endpoint = allocator->New<MyEndpoint>(std::move(allocator), ...);
Implements grpc_event_engine::experimental::MemoryAllocatorFactory.
Definition at line 466 of file memory_quota.cc.
◆ CreateMemoryOwner()
◆ IsMemoryPressureHigh()
bool grpc_core::MemoryQuota::IsMemoryPressureHigh |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetSize()
void grpc_core::MemoryQuota::SetSize |
( |
size_t |
new_size | ) |
|
|
inline |
◆ MemoryOwner
◆ memory_quota_
The documentation for this class was generated from the following files: