pub struct TakeHeapSnapshotBuilder { /* private fields */ }Expand description
Builder for TakeHeapSnapshot.
Implementations§
Source§impl TakeHeapSnapshotBuilder
impl TakeHeapSnapshotBuilder
Sourcepub fn report_progress<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn report_progress<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true ‘reportHeapSnapshotProgress’ events will be generated while snapshot is being taken.
Sourcepub fn treat_global_objects_as_roots<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn treat_global_objects_as_roots<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If true, a raw snapshot without artificial roots will be generated.
Deprecated in favor of exposeInternals.
Sourcepub fn capture_numeric_value<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn capture_numeric_value<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If true, numerical values are included in the snapshot
Sourcepub fn expose_internals<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn expose_internals<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, exposes internals of the snapshot.
Sourcepub fn build(&self) -> Result<TakeHeapSnapshot, TakeHeapSnapshotBuilderError>
pub fn build(&self) -> Result<TakeHeapSnapshot, TakeHeapSnapshotBuilderError>
Trait Implementations§
Source§impl Clone for TakeHeapSnapshotBuilder
impl Clone for TakeHeapSnapshotBuilder
Source§fn clone(&self) -> TakeHeapSnapshotBuilder
fn clone(&self) -> TakeHeapSnapshotBuilder
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 moreAuto Trait Implementations§
impl Freeze for TakeHeapSnapshotBuilder
impl RefUnwindSafe for TakeHeapSnapshotBuilder
impl Send for TakeHeapSnapshotBuilder
impl Sync for TakeHeapSnapshotBuilder
impl Unpin for TakeHeapSnapshotBuilder
impl UnsafeUnpin for TakeHeapSnapshotBuilder
impl UnwindSafe for TakeHeapSnapshotBuilder
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