oa::PerfStat

Rolling-window performance statistics. No GPU dependency; pure CPU value struct.

StRust public API

Declaration

pub struct PerfStat { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn push(&mut self, value: f64)
pub fn is_ready(&self) -> bool
pub fn mean(&self) -> f64
pub fn stddev(&self) -> f64
pub fn min(&self) -> f64
pub fn max(&self) -> f64
pub fn p50(&self) -> f64
pub fn p95(&self) -> f64
pub fn p99(&self) -> f64
pub fn last(&self) -> f64
pub fn count(&self) -> u64
pub fn name(&self) -> &str
pub fn reset(&mut self)

Associated Functions

pub fn new(name: &str, window: usize, warmup: usize) -> Self

Public Method Documentation

pub fn push( &mut self, value: f64 )
No public source comment is attached to this declaration.
pub fn is_ready( &self ) -> bool
No public source comment is attached to this declaration.
pub fn mean( &self ) -> f64
No public source comment is attached to this declaration.
pub fn stddev( &self ) -> f64
No public source comment is attached to this declaration.
pub fn min( &self ) -> f64
No public source comment is attached to this declaration.
pub fn max( &self ) -> f64
No public source comment is attached to this declaration.
pub fn p50( &self ) -> f64
No public source comment is attached to this declaration.
pub fn p95( &self ) -> f64
No public source comment is attached to this declaration.
pub fn p99( &self ) -> f64
No public source comment is attached to this declaration.
pub fn last( &self ) -> f64
No public source comment is attached to this declaration.
pub fn count( &self ) -> u64
No public source comment is attached to this declaration.
pub fn name( &self ) -> &str
No public source comment is attached to this declaration.
pub fn reset( &mut self )
No public source comment is attached to this declaration.
pub fn new( name: &str, window: usize, warmup: usize ) -> Self
No public source comment is attached to this declaration.