pub struct MemoryInsightV2 {Show 17 fields
pub version: u16,
pub peak_resident_bytes: u64,
pub peak_source: String,
pub baseline_resident_bytes: u64,
pub engine_init_resident_bytes: u64,
pub input_driven_resident_bytes: u64,
pub input_bytes: u64,
pub amplification_milli: u64,
pub scanner_threads: u64,
pub resident_per_scanner_thread_bytes: u64,
pub input_driven_per_scanner_thread_bytes: u64,
pub allocations: u64,
pub allocated_bytes: u64,
pub deallocated_bytes: u64,
pub allocation_peak_live_bytes: u64,
pub allocated_per_input_byte_milli: u64,
pub stages: Vec<StageMemoryV2>,
}Expand description
Where resident memory went and what caused it.
Fields§
§version: u16§peak_resident_bytes: u64Exact kernel high water when available, otherwise the sampled maximum.
peak_source: Stringkernel-vmhwm, boundary-samples, or unavailable.
baseline_resident_bytes: u64Resident memory at the first recorded boundary of the run.
engine_init_resident_bytes: u64Resident memory on entry to scanning: the cost of standing the engine up.
input_driven_resident_bytes: u64Peak minus the engine-init floor: the part the input actually caused.
input_bytes: u64§amplification_milli: u64Peak resident per input byte in thousandths.
scanner_threads: u64§resident_per_scanner_thread_bytes: u64Peak resident divided by scanner threads; compare across thread counts to read the per-thread scratch slope.
input_driven_per_scanner_thread_bytes: u64Input-driven resident divided by scanner threads.
allocations: u64§allocated_bytes: u64§deallocated_bytes: u64§allocation_peak_live_bytes: u64§allocated_per_input_byte_milli: u64Bytes allocated per input byte in thousandths.
stages: Vec<StageMemoryV2>Allocation owners sorted by attributed bytes, largest first.
Trait Implementations§
Source§impl Clone for MemoryInsightV2
impl Clone for MemoryInsightV2
Source§fn clone(&self) -> MemoryInsightV2
fn clone(&self) -> MemoryInsightV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryInsightV2
impl Debug for MemoryInsightV2
Source§impl<'de> Deserialize<'de> for MemoryInsightV2
impl<'de> Deserialize<'de> for MemoryInsightV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryInsightV2
Source§impl PartialEq for MemoryInsightV2
impl PartialEq for MemoryInsightV2
Source§impl Serialize for MemoryInsightV2
impl Serialize for MemoryInsightV2
impl StructuralPartialEq for MemoryInsightV2
Auto Trait Implementations§
impl Freeze for MemoryInsightV2
impl RefUnwindSafe for MemoryInsightV2
impl Send for MemoryInsightV2
impl Sync for MemoryInsightV2
impl Unpin for MemoryInsightV2
impl UnsafeUnpin for MemoryInsightV2
impl UnwindSafe for MemoryInsightV2
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