pub struct PerformanceReport { /* private fields */ }Expand description
Performance report generator
Implementations§
Source§impl PerformanceReport
impl PerformanceReport
Sourcepub fn new(metrics: &[PluginPerformanceMetrics]) -> Self
pub fn new(metrics: &[PluginPerformanceMetrics]) -> Self
Create a new performance report
Sourcepub fn to_json(&self) -> PluginResult<String>
pub fn to_json(&self) -> PluginResult<String>
Generate a JSON report
Sourcepub fn fastest_plugin(&self) -> Option<&PluginPerformanceMetrics>
pub fn fastest_plugin(&self) -> Option<&PluginPerformanceMetrics>
Get the fastest plugin
Sourcepub fn slowest_plugin(&self) -> Option<&PluginPerformanceMetrics>
pub fn slowest_plugin(&self) -> Option<&PluginPerformanceMetrics>
Get the slowest plugin
Sourcepub fn overall_stats(&self) -> Option<OverallStats>
pub fn overall_stats(&self) -> Option<OverallStats>
Calculate overall statistics
Trait Implementations§
Source§impl Clone for PerformanceReport
impl Clone for PerformanceReport
Auto Trait Implementations§
impl Freeze for PerformanceReport
impl RefUnwindSafe for PerformanceReport
impl Send for PerformanceReport
impl Sync for PerformanceReport
impl Unpin for PerformanceReport
impl UnsafeUnpin for PerformanceReport
impl UnwindSafe for PerformanceReport
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