pub struct MemoryMetrics {
pub wasm_memory_size: Nat,
pub stable_memory_size: Nat,
pub global_memory_size: Nat,
pub wasm_binary_size: Nat,
pub custom_sections_size: Nat,
pub canister_history_size: Nat,
pub wasm_chunk_store_size: Nat,
pub snapshots_size: Nat,
}Expand description
Fields§
§wasm_memory_size: NatRepresents the Wasm memory usage of the canister, i.e. the heap memory used by the canister’s WebAssembly code.
stable_memory_size: NatRepresents the stable memory usage of the canister.
global_memory_size: NatRepresents the memory usage of the global variables that the canister is using.
wasm_binary_size: NatRepresents the memory occupied by the Wasm binary that is currently installed on the canister.
custom_sections_size: NatRepresents the memory used by custom sections defined by the canister.
canister_history_size: NatRepresents the memory used for storing the canister’s history.
wasm_chunk_store_size: NatRepresents the memory used by the Wasm chunk store of the canister.
snapshots_size: NatRepresents the memory consumed by all snapshots that belong to this canister.
Trait Implementations§
Source§impl CandidType for MemoryMetrics
impl CandidType for MemoryMetrics
Source§impl Clone for MemoryMetrics
impl Clone for MemoryMetrics
Source§fn clone(&self) -> MemoryMetrics
fn clone(&self) -> MemoryMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryMetrics
impl Debug for MemoryMetrics
Source§impl<'de> Deserialize<'de> for MemoryMetrics
impl<'de> Deserialize<'de> for MemoryMetrics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MemoryMetrics
impl Hash for MemoryMetrics
Source§impl Ord for MemoryMetrics
impl Ord for MemoryMetrics
Source§fn cmp(&self, other: &MemoryMetrics) -> Ordering
fn cmp(&self, other: &MemoryMetrics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemoryMetrics
impl PartialEq for MemoryMetrics
Source§impl PartialOrd for MemoryMetrics
impl PartialOrd for MemoryMetrics
Source§impl Serialize for MemoryMetrics
impl Serialize for MemoryMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MemoryMetrics
impl StructuralPartialEq for MemoryMetrics
Auto Trait Implementations§
impl Freeze for MemoryMetrics
impl RefUnwindSafe for MemoryMetrics
impl Send for MemoryMetrics
impl Sync for MemoryMetrics
impl Unpin for MemoryMetrics
impl UnwindSafe for MemoryMetrics
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