pub struct TimestampQuerySet { /* private fields */ }Expand description
A set of TimestampQuerys collected during one frame / step.
Implementations§
Source§impl TimestampQuerySet
impl TimestampQuerySet
Sourcepub fn record(&mut self, query: TimestampQuery)
pub fn record(&mut self, query: TimestampQuery)
Record a timestamp query.
Sourcepub fn queries(&self) -> &[TimestampQuery]
pub fn queries(&self) -> &[TimestampQuery]
Return all queries.
Sourcepub fn slowest_pass(&self) -> Option<&TimestampQuery>
pub fn slowest_pass(&self) -> Option<&TimestampQuery>
Find the query with the longest elapsed time.
Sourcepub fn total_elapsed_ms(&self) -> f64
pub fn total_elapsed_ms(&self) -> f64
Sum of all elapsed times.
Trait Implementations§
Source§impl Clone for TimestampQuerySet
impl Clone for TimestampQuerySet
Source§fn clone(&self) -> TimestampQuerySet
fn clone(&self) -> TimestampQuerySet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimestampQuerySet
impl Debug for TimestampQuerySet
Source§impl Default for TimestampQuerySet
impl Default for TimestampQuerySet
Source§fn default() -> TimestampQuerySet
fn default() -> TimestampQuerySet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimestampQuerySet
impl RefUnwindSafe for TimestampQuerySet
impl Send for TimestampQuerySet
impl Sync for TimestampQuerySet
impl Unpin for TimestampQuerySet
impl UnsafeUnpin for TimestampQuerySet
impl UnwindSafe for TimestampQuerySet
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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