pub struct RuntimeStats {Show 13 fields
pub num_pages: usize,
pub num_frames: usize,
pub num_regions: usize,
pub num_aliases: usize,
pub num_rotated_regions: usize,
pub num_trimmed_frames: usize,
pub page_area: u128,
pub content_area: u128,
pub allocation_area: u128,
pub content_occupancy: f64,
pub allocation_occupancy: f64,
pub allocator_free_area: u128,
pub num_free_rects: usize,
}Expand description
KTD10 atlas metrics plus runtime allocator fragmentation data.
Fields§
§num_pages: usize§num_frames: usize§num_regions: usize§num_aliases: usize§num_rotated_regions: usize§num_trimmed_frames: usize§page_area: u128§content_area: u128§allocation_area: u128§content_occupancy: f64§allocation_occupancy: f64§allocator_free_area: u128Space currently reported by runtime placement strategies.
num_free_rects: usizeNumber of allocator free rectangles or segments.
Implementations§
Source§impl RuntimeStats
impl RuntimeStats
pub fn summary(&self) -> String
Sourcepub fn fragmentation(&self) -> f64
pub fn fragmentation(&self) -> f64
Returns the runtime allocator fragmentation ratio.
Sourcepub fn waste_percentage(&self) -> f64
pub fn waste_percentage(&self) -> f64
Returns the percentage of page area not occupied by physical allocations.
Trait Implementations§
Source§impl Clone for RuntimeStats
impl Clone for RuntimeStats
Source§fn clone(&self) -> RuntimeStats
fn clone(&self) -> RuntimeStats
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 RuntimeStats
impl Debug for RuntimeStats
Source§impl PartialEq for RuntimeStats
impl PartialEq for RuntimeStats
impl StructuralPartialEq for RuntimeStats
Auto Trait Implementations§
impl Freeze for RuntimeStats
impl RefUnwindSafe for RuntimeStats
impl Send for RuntimeStats
impl Sync for RuntimeStats
impl Unpin for RuntimeStats
impl UnsafeUnpin for RuntimeStats
impl UnwindSafe for RuntimeStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more