pub struct Tool(/* private fields */);
Available on crate feature
default
only.Expand description
Configure to run other valgrind tools like DHAT
or Massif
in addition to callgrind
For a list of possible tools see ValgrindTool
.
See also the Valgrind User Manual for details about possible tools and their command line arguments.
§Examples
use iai_callgrind::{main, LibraryBenchmarkConfig, Tool, ValgrindTool};
main!(
config = LibraryBenchmarkConfig::default()
.tool(Tool::new(ValgrindTool::DHAT));
library_benchmark_groups = some_group
);
Implementations§
source§impl Tool
impl Tool
sourcepub fn new(tool: ValgrindTool) -> Self
pub fn new(tool: ValgrindTool) -> Self
Create a new Tool
configuration
§Examples
use iai_callgrind::{Tool, ValgrindTool};
let tool = Tool::new(ValgrindTool::DHAT);
Trait Implementations§
source§impl AsRef<Tool> for Tool
impl AsRef<Tool> for Tool
source§fn as_ref(&self) -> &InternalTool
fn as_ref(&self) -> &InternalTool
Converts this type into a shared reference of the (usually inferred) input type.
source§impl From<&Tool> for InternalTool
impl From<&Tool> for InternalTool
source§impl From<&mut Tool> for InternalTool
impl From<&mut Tool> for InternalTool
source§impl From<Tool> for InternalTool
impl From<Tool> for InternalTool
impl Eq for Tool
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)