[−][src]Struct bevy_diagnostic::Diagnostic
A timeline of DiagnosticMeasurements of a specific type. Diagnostic examples: frames per second, CPU usage, network latency
Fields
id: DiagnosticId
name: String
Implementations
impl Diagnostic
[src]
pub fn add_measurement(&mut self, value: f64)
[src]
pub fn new(
id: DiagnosticId,
name: &str,
max_history_length: usize
) -> Diagnostic
[src]
id: DiagnosticId,
name: &str,
max_history_length: usize
) -> Diagnostic
pub fn value(&self) -> Option<f64>
[src]
pub fn sum(&self) -> f64
[src]
pub fn average(&self) -> Option<f64>
[src]
pub fn history_len(&self) -> usize
[src]
pub fn duration(&self) -> Option<Duration>
[src]
pub fn get_max_history_length(&self) -> usize
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,