pub struct PprofOptions {
pub server_id: String,
pub node_id: String,
pub seconds: i64,
pub gc: i64,
pub debug: i64,
}
Expand description
PprofOptions contain a set of parameters for profiling a node or server.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§server_id: String
ServerID is the server ID, name, or special value “leader” to specify the server that a given profile should be run on.
node_id: String
NodeID is the node ID that a given profile should be run on.
seconds: i64
Seconds specifies the amount of time a profile should be run for. Seconds only applies for certain runtime profiles like CPU and Trace.
gc: i64
GC determines if a runtime.GC() should be called before a heap profile.
debug: i64
Debug specifies if the output of a lookup profile should be returned in human readable format instead of binary.
Implementations§
Source§impl PprofOptions
impl PprofOptions
pub fn builder() -> PprofOptionsBuilder
Trait Implementations§
Source§impl Clone for PprofOptions
impl Clone for PprofOptions
Source§fn clone(&self) -> PprofOptions
fn clone(&self) -> PprofOptions
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 moreSource§impl Debug for PprofOptions
impl Debug for PprofOptions
Source§impl Default for PprofOptions
impl Default for PprofOptions
Source§fn default() -> PprofOptions
fn default() -> PprofOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PprofOptions
impl<'de> Deserialize<'de> for PprofOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PprofOptions
impl PartialEq for PprofOptions
Source§impl Serialize for PprofOptions
impl Serialize for PprofOptions
impl StructuralPartialEq for PprofOptions
Auto Trait Implementations§
impl Freeze for PprofOptions
impl RefUnwindSafe for PprofOptions
impl Send for PprofOptions
impl Sync for PprofOptions
impl Unpin for PprofOptions
impl UnwindSafe for PprofOptions
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