pub struct Massif(/* private fields */);
Available on crate feature
default
only.Expand description
The configuration for Massif
Can be specified in crate::LibraryBenchmarkConfig::tool
or
crate::BinaryBenchmarkConfig::tool
.
§Example
use iai_callgrind::{LibraryBenchmarkConfig, main, Massif};
main!(
config = LibraryBenchmarkConfig::default()
.tool(Massif::default());
library_benchmark_groups = some_group
);
Implementations§
Source§impl Massif
impl Massif
Sourcepub fn with_args<I, T>(args: T) -> Self
pub fn with_args<I, T>(args: T) -> Self
Create a new Massif
configuration with initial command-line arguments
See also Callgrind::args
and Massif::args
§Examples
use iai_callgrind::Massif;
let config = Massif::with_args(["threshold=2.0"]);
Sourcepub fn args<I, T>(&mut self, args: T) -> &mut Self
pub fn args<I, T>(&mut self, args: T) -> &mut Self
Add command-line arguments to the Massif
configuration
Valid arguments are https://valgrind.org/docs/manual/ms-manual.html#ms-manual.options and the core valgrind command-line arguments https://valgrind.org/docs/manual/manual-core.html#manual-core.options.
See also Callgrind::args
§Examples
use iai_callgrind::Massif;
let config = Massif::default().args(["threshold=2.0"]);
Sourcepub fn enable(&mut self, value: bool) -> &mut Self
pub fn enable(&mut self, value: bool) -> &mut Self
Enable this tool. This is the default.
See also Callgrind::enable
§Examples
use iai_callgrind::Massif;
let config = Massif::default().enable(false);
Trait Implementations§
Source§impl AsRef<Tool> for Massif
impl AsRef<Tool> for Massif
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<&Massif> for InternalTool
impl From<&Massif> for InternalTool
Source§impl From<&mut Massif> for InternalTool
impl From<&mut Massif> for InternalTool
Auto Trait Implementations§
impl Freeze for Massif
impl RefUnwindSafe for Massif
impl Send for Massif
impl Sync for Massif
impl Unpin for Massif
impl UnwindSafe for Massif
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