pub struct DefragStats {
pub total_cycles: u64,
pub total_bytes_moved: u64,
pub total_time_spent: Duration,
pub average_fragmentation_reduction: f64,
pub successful_cycles: u64,
pub failed_cycles: u64,
pub average_cycle_time: Duration,
pub peak_fragmentation: f64,
pub current_fragmentation: f64,
pub objects_relocated: u64,
pub compaction_efficiency: f64,
}Expand description
Defragmentation statistics
Fields§
§total_cycles: u64Total defragmentation cycles
total_bytes_moved: u64Total bytes moved during defragmentation
total_time_spent: DurationTotal time spent on defragmentation
average_fragmentation_reduction: f64Average fragmentation reduction per cycle
successful_cycles: u64Successful defragmentation attempts
failed_cycles: u64Failed defragmentation attempts
average_cycle_time: DurationAverage cycle time
peak_fragmentation: f64Peak fragmentation level observed
current_fragmentation: f64Current fragmentation level
objects_relocated: u64Objects relocated during defragmentation
compaction_efficiency: f64Memory compaction efficiency
Trait Implementations§
Source§impl Clone for DefragStats
impl Clone for DefragStats
Source§fn clone(&self) -> DefragStats
fn clone(&self) -> DefragStats
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 DefragStats
impl Debug for DefragStats
Source§impl Default for DefragStats
impl Default for DefragStats
Source§fn default() -> DefragStats
fn default() -> DefragStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefragStats
impl RefUnwindSafe for DefragStats
impl Send for DefragStats
impl Sync for DefragStats
impl Unpin for DefragStats
impl UnwindSafe for DefragStats
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> 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