pub struct MetricsSet { /* private fields */ }
Expand description

A snapshot of the metrics for a particular operator (dyn ExecutionPlan).

Implementations

Create a new container of metrics

Add the specified metric

Returns an interator across all metrics

convenience: return the number of rows produced, aggregated across partitions or None if no metric is present

convenience: return the count of spills, aggregated across partitions or None if no metric is present

convenience: return the total byte size of spills, aggregated across partitions or None if no metric is present

convenience: return the amount of elapsed CPU time spent, aggregated across partitions or None if no metric is present

Sums the values for metrics for which f(metric) returns true, and returns the value. Returns None if no metrics match the predicate.

Returns returns a new derived MetricsSet where all metrics that had the same name and partition=Some(..) have been aggregated together. The resulting MetricsSet has all metrics with Partition=None

Sort the order of metrics so the “most useful” show up first

remove all timestamp metrics (for more compact display

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

format the MetricsSet as a single string

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.