Struct avm_server::AVMMemoryStats
source · pub struct AVMMemoryStats {
pub memory_size: usize,
pub total_memory_limit: Option<u64>,
pub allocation_rejects: Option<u32>,
}Expand description
Return statistic of AVM server Wasm module heap footprint.
Fields§
§memory_size: usizeSize of currently used linear memory in bytes. Please note that linear memory contains not only heap, but globals, shadow stack and so on.
total_memory_limit: Option<u64>Possibly set max memory size for AVM server.
allocation_rejects: Option<u32>Number of allocations rejected due to memory limit. May be not recorded by some backends in Marine.
Auto Trait Implementations§
impl RefUnwindSafe for AVMMemoryStats
impl Send for AVMMemoryStats
impl Sync for AVMMemoryStats
impl Unpin for AVMMemoryStats
impl UnwindSafe for AVMMemoryStats
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.