pub struct Tracing {
pub enable_tracing: bool,
pub trace_events: Vec<String>,
pub max_trace_size: String,
}Fields§
§enable_tracing: boolEnable optional perf recording during workloads (only used when perf is available). On by default.
trace_events: Vec<String>Events passed to perf record with -e.
max_trace_size: StringCap passed to perf record --max-size for perf.data. Accepts a plain byte
count or a human-readable size with a binary suffix (K, M, G,
optionally followed by B), e.g. 256M, 1G.
Implementations§
Source§impl Tracing
impl Tracing
Sourcepub fn max_trace_bytes(&self) -> Result<u64>
pub fn max_trace_bytes(&self) -> Result<u64>
Parse Tracing::max_trace_size into a byte count.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tracing
impl<'de> Deserialize<'de> for Tracing
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
Auto Trait Implementations§
impl Freeze for Tracing
impl RefUnwindSafe for Tracing
impl Send for Tracing
impl Sync for Tracing
impl Unpin for Tracing
impl UnsafeUnpin for Tracing
impl UnwindSafe for Tracing
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