pub struct Tool {
pub enable: Option<bool>,
pub entry_point: Option<EntryPoint>,
pub flamegraph_config: Option<ToolFlamegraphConfig>,
pub frames: Option<Vec<String>>,
pub kind: ValgrindTool,
pub output_format: Option<ToolOutputFormat>,
pub raw_args: RawArgs,
pub regression_config: Option<ToolRegressionConfig>,
pub show_log: Option<bool>,
}
Available on crate feature
api
only.Expand description
The tool configuration
Fields§
§enable: Option<bool>
If true the tool is run. Ignored for the default tool which always runs
entry_point: Option<EntryPoint>
The entry point for the tool
flamegraph_config: Option<ToolFlamegraphConfig>
The configuration for flamegraphs
frames: Option<Vec<String>>
Any frames in the call stack which should be considered in addition to the entry point
kind: ValgrindTool
The valgrind tool this configuration is for
output_format: Option<ToolOutputFormat>
The configuration of the output format
raw_args: RawArgs
The arguments to pass to the tool
regression_config: Option<ToolRegressionConfig>
The configuration for regression checks of tools which perform regression checks
show_log: Option<bool>
If true show the logging output of Valgrind (not Iai-Callgrind)
Implementations§
Source§impl Tool
impl Tool
Sourcepub fn new(kind: ValgrindTool) -> Self
pub fn new(kind: ValgrindTool) -> Self
Create a new Tool
configuration
Sourcepub fn with_args<I, T>(kind: ValgrindTool, args: T) -> Self
pub fn with_args<I, T>(kind: ValgrindTool, args: T) -> Self
Create a new Tool
configuration with the given command-line args
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more