pub struct ScalingChart { /* private fields */ }Expand description
Performance scaling chart generator
Implementations§
Source§impl ScalingChart
impl ScalingChart
Sourcepub fn new(config: ChartConfig) -> Self
pub fn new(config: ChartConfig) -> Self
Create new scaling chart
Sourcepub fn add_series(&mut self, name: &str, data_points: Vec<(f64, f64)>)
pub fn add_series(&mut self, name: &str, data_points: Vec<(f64, f64)>)
Add data series to the chart
Sourcepub fn add_scaling_results(
&mut self,
name: &str,
scaling_results: &[(usize, BenchmarkResult)],
)
pub fn add_scaling_results( &mut self, name: &str, scaling_results: &[(usize, BenchmarkResult)], )
Add benchmark results as a scaling series
Sourcepub fn data_series_count(&self) -> usize
pub fn data_series_count(&self) -> usize
Get the number of data series in the chart
Sourcepub fn data_points_count(&self, series_index: usize) -> Option<usize>
pub fn data_points_count(&self, series_index: usize) -> Option<usize>
Get the number of data points in a specific series
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScalingChart
impl RefUnwindSafe for ScalingChart
impl Send for ScalingChart
impl Sync for ScalingChart
impl Unpin for ScalingChart
impl UnwindSafe for ScalingChart
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