pub struct ProfileEstimate {
pub basis: &'static str,
pub resident_bytes: u64,
pub transient_bytes: u64,
pub source_bytes: u64,
}Expand description
Pre-read memory estimate for loading and preparing one profile.
Fields§
§basis: &'static strHow the numbers were obtained.
resident_bytes: u64Bytes kept while the profile is alive (prepared interpolator, mask, caller terrain).
For binary/inline this mirrors the post-prepare self-accounting with every supplied
simplex assumed valid.
transient_bytes: u64Extra bytes alive only during load + prepare (decoded samples and simplices, triangle
vector and an assumed equal-size RTree::bulk_load working copy, read buffer).
source_bytes: u64Source bytes on disk (files) or 0 (inline).
Implementations§
Source§impl ProfileEstimate
impl ProfileEstimate
pub fn peak_bytes(&self) -> u64
Trait Implementations§
Source§impl Clone for ProfileEstimate
impl Clone for ProfileEstimate
Source§impl Debug for ProfileEstimate
impl Debug for ProfileEstimate
Source§impl Default for ProfileEstimate
impl Default for ProfileEstimate
Source§impl PartialEq for ProfileEstimate
impl PartialEq for ProfileEstimate
Source§impl Serialize for ProfileEstimate
impl Serialize for ProfileEstimate
impl StructuralPartialEq for ProfileEstimate
Auto Trait Implementations§
impl Freeze for ProfileEstimate
impl RefUnwindSafe for ProfileEstimate
impl Send for ProfileEstimate
impl Sync for ProfileEstimate
impl Unpin for ProfileEstimate
impl UnsafeUnpin for ProfileEstimate
impl UnwindSafe for ProfileEstimate
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, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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