pub enum ToolMetricSummary {
None,
ErrorSummary(MetricsSummary<ErrorMetricKind>),
DhatSummary(MetricsSummary<DhatMetricKind>),
CallgrindSummary(MetricsSummary<EventKind>),
}
Available on crate feature
runner
only.Expand description
The ToolMetricSummary
contains the MetricsSummary
distinguished by tool and metric kinds
Variants§
None
If there are no metrics extracted (currently massif, bbv)
ErrorSummary(MetricsSummary<ErrorMetricKind>)
The error summary of tools which reports errors (memcheck, helgrind, drd)
DhatSummary(MetricsSummary<DhatMetricKind>)
The dhat summary
CallgrindSummary(MetricsSummary<EventKind>)
The callgrind summary
Implementations§
source§impl ToolMetricSummary
impl ToolMetricSummary
pub fn add_mut(&mut self, other: &Self)
pub fn from_new_metrics(metrics: &ToolMetrics) -> Self
pub fn from_old_metrics(metrics: &ToolMetrics) -> Self
sourcepub fn try_from_new_and_old_metrics(
new_metrics: &ToolMetrics,
old_metrics: &ToolMetrics,
) -> Result<Self>
pub fn try_from_new_and_old_metrics( new_metrics: &ToolMetrics, old_metrics: &ToolMetrics, ) -> Result<Self>
Return the ToolMetricSummary
if the MetricsKind
are the same kind, else return with
error
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
Trait Implementations§
source§impl Clone for ToolMetricSummary
impl Clone for ToolMetricSummary
source§fn clone(&self) -> ToolMetricSummary
fn clone(&self) -> ToolMetricSummary
Returns a copy 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 ToolMetricSummary
impl Debug for ToolMetricSummary
source§impl Default for ToolMetricSummary
impl Default for ToolMetricSummary
source§fn default() -> ToolMetricSummary
fn default() -> ToolMetricSummary
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ToolMetricSummary
impl<'de> Deserialize<'de> for ToolMetricSummary
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
source§impl JsonSchema for ToolMetricSummary
impl JsonSchema for ToolMetricSummary
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for ToolMetricSummary
impl PartialEq for ToolMetricSummary
source§impl Serialize for ToolMetricSummary
impl Serialize for ToolMetricSummary
impl StructuralPartialEq for ToolMetricSummary
Auto Trait Implementations§
impl Freeze for ToolMetricSummary
impl RefUnwindSafe for ToolMetricSummary
impl Send for ToolMetricSummary
impl Sync for ToolMetricSummary
impl Unpin for ToolMetricSummary
impl UnwindSafe for ToolMetricSummary
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
)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