pub struct PerformanceBenchmark { /* private fields */ }Expand description
Performance benchmarking system for renderer comparison
Implementations§
Source§impl PerformanceBenchmark
impl PerformanceBenchmark
Sourcepub fn benchmark_animation_framerate(
&mut self,
script: &Script<'_>,
test_name: &str,
) -> Result<BenchmarkResult, RenderError>
pub fn benchmark_animation_framerate( &mut self, script: &Script<'_>, test_name: &str, ) -> Result<BenchmarkResult, RenderError>
Run frame rate benchmark for animations
Source§impl PerformanceBenchmark
impl PerformanceBenchmark
Sourcepub fn generate_performance_report(&self) -> PerformanceReport
pub fn generate_performance_report(&self) -> PerformanceReport
Generate performance report
Source§impl PerformanceBenchmark
impl PerformanceBenchmark
Sourcepub fn new(
context: RenderContext,
config: BenchmarkConfig,
) -> Result<Self, RenderError>
pub fn new( context: RenderContext, config: BenchmarkConfig, ) -> Result<Self, RenderError>
Create new performance benchmark
Sourcepub fn benchmark_script(
&mut self,
script: &Script<'_>,
test_name: &str,
) -> Result<Vec<BenchmarkResult>, RenderError>
pub fn benchmark_script( &mut self, script: &Script<'_>, test_name: &str, ) -> Result<Vec<BenchmarkResult>, RenderError>
Run comprehensive benchmark on a script
Auto Trait Implementations§
impl !RefUnwindSafe for PerformanceBenchmark
impl !UnwindSafe for PerformanceBenchmark
impl Freeze for PerformanceBenchmark
impl Send for PerformanceBenchmark
impl Sync for PerformanceBenchmark
impl Unpin for PerformanceBenchmark
impl UnsafeUnpin for PerformanceBenchmark
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> 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