pub struct FragmentationStats {
pub extent_size: [u64; 12],
pub extent_count: [u64; 12],
pub free_space: [u64; 12],
}Fields§
§extent_size: [u64; 12]Histogram of extent size in bytes. Buckets are fixed as <=4kB, <=8kB, … <=2MiB, >2MiB.
extent_count: [u64; 12]Histogram of extents per file. Buckets are fixed as <=1, <=2, … <=512, >512.
free_space: [u64; 12]Histogram of free space in bytes. Buckets are fixed as <=4kB, <=8kB, … <=2MiB, >2MiB.
Implementations§
Source§impl FragmentationStats
impl FragmentationStats
Sourcepub fn get_histogram_bucket_for_size(size: u64) -> usize
pub fn get_histogram_bucket_for_size(size: u64) -> usize
Returns the histogram bucket for extent_size and free_space given size in bytes.
Sourcepub fn get_histogram_bucket_for_count(count: u64) -> usize
pub fn get_histogram_bucket_for_count(count: u64) -> usize
Returns the histogram bucket for extent_count.
Trait Implementations§
Source§impl Debug for FragmentationStats
impl Debug for FragmentationStats
Source§impl Default for FragmentationStats
impl Default for FragmentationStats
Source§fn default() -> FragmentationStats
fn default() -> FragmentationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FragmentationStats
impl RefUnwindSafe for FragmentationStats
impl Send for FragmentationStats
impl Sync for FragmentationStats
impl Unpin for FragmentationStats
impl UnwindSafe for FragmentationStats
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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