pub struct ProfilerRunnerBuilder { /* private fields */ }Expand description
Builder for ProfilerRunner.
Implementations§
Source§impl ProfilerRunnerBuilder
impl ProfilerRunnerBuilder
Sourcepub fn check_interval_secs<VALUE: Into<usize>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn check_interval_secs<VALUE: Into<usize>>( &mut self, value: VALUE, ) -> &mut Self
Number of seconds in between memory checks
Sourcepub fn report_pct_change_trigger<VALUE: Into<usize>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn report_pct_change_trigger<VALUE: Into<usize>>( &mut self, value: VALUE, ) -> &mut Self
Percent change in retained memory to trigger a report
Sourcepub fn reporting_path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn reporting_path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Path to write top retained memory reports to
Sourcepub fn expand_frames<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn expand_frames<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Expand inlined call stack symbols with a > ?
Sourcepub fn gen_flamegraphs<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn gen_flamegraphs<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Generate flamegraphs at reporting_path
Sourcepub fn measure_allocated_not_retained<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn measure_allocated_not_retained<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
True=measure allocated memory instead of False=measure retained memory
Sourcepub fn build(&self) -> Result<ProfilerRunner, ProfilerRunnerBuilderError>
pub fn build(&self) -> Result<ProfilerRunner, ProfilerRunnerBuilderError>
Trait Implementations§
Source§impl Clone for ProfilerRunnerBuilder
impl Clone for ProfilerRunnerBuilder
Source§fn clone(&self) -> ProfilerRunnerBuilder
fn clone(&self) -> ProfilerRunnerBuilder
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 moreAuto Trait Implementations§
impl Freeze for ProfilerRunnerBuilder
impl RefUnwindSafe for ProfilerRunnerBuilder
impl Send for ProfilerRunnerBuilder
impl Sync for ProfilerRunnerBuilder
impl Unpin for ProfilerRunnerBuilder
impl UnsafeUnpin for ProfilerRunnerBuilder
impl UnwindSafe for ProfilerRunnerBuilder
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