pub struct OutputFormat {
pub cachegrind: IndexSet<CachegrindMetric>,
pub callgrind: IndexSet<EventKind>,
pub dhat: IndexSet<DhatMetric>,
pub drd: IndexSet<ErrorMetric>,
pub helgrind: IndexSet<ErrorMetric>,
pub kind: OutputFormatKind,
pub memcheck: IndexSet<ErrorMetric>,
pub show_grid: bool,
pub show_intermediate: bool,
pub tolerance: Option<f64>,
pub truncate_description: Option<usize>,
}
Available on crate feature
runner
only.Expand description
The OutputFormat
of the Iai-Callgrind terminal output
Fields§
§cachegrind: IndexSet<CachegrindMetric>
The Cachegrind metrics to show
callgrind: IndexSet<EventKind>
The Callgrind metrics to show
dhat: IndexSet<DhatMetric>
The DHAT metrics to show
drd: IndexSet<ErrorMetric>
The DRD error metrics to show
helgrind: IndexSet<ErrorMetric>
The Helgrind error metrics to show
kind: OutputFormatKind
The OutputFormatKind
memcheck: IndexSet<ErrorMetric>
The Memcheck error metrics to show
show_grid: bool
Show a grid instead of blank spaces
show_intermediate: bool
Show intermediate metrics output or just the total
tolerance: Option<f64>
Don’t show differences within the tolerance margin
truncate_description: Option<usize>
If present truncate the description to this amount of bytes
Implementations§
Source§impl OutputFormat
impl OutputFormat
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Return true if the OutputFormat
is the default format
Sourcepub fn update(&mut self, tool: Option<&Tool>)
pub fn update(&mut self, tool: Option<&Tool>)
Update the output format from the Tool
if present
Sourcepub fn update_from_meta(&mut self, meta: &Metadata)
pub fn update_from_meta(&mut self, meta: &Metadata)
Update the output format with data from command-line arguments in Metadata
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
Source§fn clone(&self) -> OutputFormat
fn clone(&self) -> OutputFormat
Returns a duplicate 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 OutputFormat
impl Debug for OutputFormat
Source§impl Default for OutputFormat
impl Default for OutputFormat
Source§impl From<OutputFormat> for OutputFormat
impl From<OutputFormat> for OutputFormat
Source§fn from(value: OutputFormat) -> Self
fn from(value: OutputFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnwindSafe for OutputFormat
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