pub struct CPU {
pub busy_ns: u32,
pub lag_ns: u32,
pub total_ns: u32,
}
Fields§
§busy_ns: u32
The time taken running the app.
Includes executing wasm callbacks, wasm host functions, rendering frame buffer on the screen, syncing network code, etc. Basically, everything except when the main thread is sleeping.
Lower is better.
lag_ns: u32
The time over expected limit taken by updates.
Lower is better. If this value is not zero, the app will be lagging.
total_ns: u32
The total duration of the observed interval, in nanoseconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CPU
impl<'de> Deserialize<'de> for CPU
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CPU
Auto Trait Implementations§
impl Freeze for CPU
impl RefUnwindSafe for CPU
impl Send for CPU
impl Sync for CPU
impl Unpin for CPU
impl UnwindSafe for CPU
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