pub struct PprofOptionsBuilder { /* private fields */ }
Expand description
Builder for PprofOptions
.
Implementations§
Source§impl PprofOptionsBuilder
impl PprofOptionsBuilder
Sourcepub fn server_id(&mut self, value: String) -> &mut Self
pub fn server_id(&mut self, value: String) -> &mut Self
ServerID is the server ID, name, or special value “leader” to specify the server that a given profile should be run on.
Sourcepub fn node_id(&mut self, value: String) -> &mut Self
pub fn node_id(&mut self, value: String) -> &mut Self
NodeID is the node ID that a given profile should be run on.
Sourcepub fn seconds(&mut self, value: i64) -> &mut Self
pub fn seconds(&mut self, value: i64) -> &mut Self
Seconds specifies the amount of time a profile should be run for. Seconds only applies for certain runtime profiles like CPU and Trace.
Sourcepub fn gc(&mut self, value: i64) -> &mut Self
pub fn gc(&mut self, value: i64) -> &mut Self
GC determines if a runtime.GC() should be called before a heap profile.
Sourcepub fn debug(&mut self, value: i64) -> &mut Self
pub fn debug(&mut self, value: i64) -> &mut Self
Debug specifies if the output of a lookup profile should be returned in human readable format instead of binary.
Sourcepub fn build(&self) -> Result<PprofOptions, PprofOptionsBuilderError>
pub fn build(&self) -> Result<PprofOptions, PprofOptionsBuilderError>
Trait Implementations§
Source§impl Clone for PprofOptionsBuilder
impl Clone for PprofOptionsBuilder
Source§fn clone(&self) -> PprofOptionsBuilder
fn clone(&self) -> PprofOptionsBuilder
Returns a copy 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 PprofOptionsBuilder
impl RefUnwindSafe for PprofOptionsBuilder
impl Send for PprofOptionsBuilder
impl Sync for PprofOptionsBuilder
impl Unpin for PprofOptionsBuilder
impl UnwindSafe for PprofOptionsBuilder
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