pub struct MemoryInfoContext {Show 17 fields
pub allocated_bytes: Annotated<u64>,
pub compacted: Annotated<bool>,
pub concurrent: Annotated<bool>,
pub finalization_pending_count: Annotated<u64>,
pub fragmented_bytes: Annotated<u64>,
pub heap_size_bytes: Annotated<u64>,
pub high_memory_load_threshold_bytes: Annotated<u64>,
pub index: Annotated<u64>,
pub memory_load_bytes: Annotated<u64>,
pub pause_durations: Annotated<Array<u64>>,
pub pause_time_percentage: Annotated<f64>,
pub pinned_objects_count: Annotated<u64>,
pub promoted_bytes: Annotated<u64>,
pub total_allocated_bytes: Annotated<u64>,
pub total_available_memory_bytes: Annotated<u64>,
pub total_committed_bytes: Annotated<u64>,
pub other: Object<Value>,
}
Expand description
Memory Info Context
Fields§
§allocated_bytes: Annotated<u64>
Currently allocated memory in bytes.
compacted: Annotated<bool>
Boolean indicating if memory was compacted.
concurrent: Annotated<bool>
Boolean indicating if concurrent garbage collection occurred.
finalization_pending_count: Annotated<u64>
Number of objects awaiting finalization.
fragmented_bytes: Annotated<u64>
Fragmented memory that cannot be used in bytes.
heap_size_bytes: Annotated<u64>
Total heap size in bytes.
high_memory_load_threshold_bytes: Annotated<u64>
Threshold for high memory load detection in bytes.
index: Annotated<u64>
GC generation index.
memory_load_bytes: Annotated<u64>
Current memory load in bytes.
pause_durations: Annotated<Array<u64>>
Array of GC pause durations in milliseconds.
pause_time_percentage: Annotated<f64>
Percentage of time spent in GC pauses.
pinned_objects_count: Annotated<u64>
Number of pinned objects in memory.
promoted_bytes: Annotated<u64>
Bytes promoted to higher generation.
total_allocated_bytes: Annotated<u64>
Total memory allocated since start in bytes.
total_available_memory_bytes: Annotated<u64>
Total memory available to the application in bytes.
total_committed_bytes: Annotated<u64>
Total committed virtual memory in bytes.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl Clone for MemoryInfoContext
impl Clone for MemoryInfoContext
Source§fn clone(&self) -> MemoryInfoContext
fn clone(&self) -> MemoryInfoContext
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 MemoryInfoContext
impl Debug for MemoryInfoContext
Source§impl Default for MemoryInfoContext
impl Default for MemoryInfoContext
Source§fn default() -> MemoryInfoContext
fn default() -> MemoryInfoContext
Returns the “default value” for a type. Read more
Source§impl DefaultContext for MemoryInfoContext
impl DefaultContext for MemoryInfoContext
Source§fn default_key() -> &'static str
fn default_key() -> &'static str
The default key at which this context resides in
Contexts
.Source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
Converts this context type from a generic context type. Read more
Source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
Casts a reference to this context type from a generic context type. Read more
Source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
Casts a mutable reference to this context type from a generic context type. Read more
Source§fn into_context(self) -> Context
fn into_context(self) -> Context
Boxes this context type in the generic context wrapper. Read more
Source§impl Empty for MemoryInfoContext
impl Empty for MemoryInfoContext
Source§impl FromObjectRef for MemoryInfoContext
impl FromObjectRef for MemoryInfoContext
Source§fn from_object_ref(__obj: &mut Object<Value>) -> Self
fn from_object_ref(__obj: &mut Object<Value>) -> Self
Creates a meta structure from key value pairs. Read more
Source§impl FromValue for MemoryInfoContext
impl FromValue for MemoryInfoContext
Source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
Source§impl IntoObjectRef for MemoryInfoContext
impl IntoObjectRef for MemoryInfoContext
Source§fn into_object_ref(self, __map: &mut Object<Value>)
fn into_object_ref(self, __map: &mut Object<Value>)
Boxes the meta structure back into an object of values. Read more
Source§impl IntoValue for MemoryInfoContext
impl IntoValue for MemoryInfoContext
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
Source§impl PartialEq for MemoryInfoContext
impl PartialEq for MemoryInfoContext
Source§impl ProcessValue for MemoryInfoContext
impl ProcessValue for MemoryInfoContext
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
Source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
Source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for MemoryInfoContext
Auto Trait Implementations§
impl Freeze for MemoryInfoContext
impl RefUnwindSafe for MemoryInfoContext
impl Send for MemoryInfoContext
impl Sync for MemoryInfoContext
impl Unpin for MemoryInfoContext
impl UnwindSafe for MemoryInfoContext
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