Struct firefly_types::serial::CPU
source · pub struct CPU {
pub busy_ns: u32,
pub lag_ns: u32,
pub total_ns: u32,
}Fields§
§busy_ns: u32The 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: u32The time over expected limit taken by updates.
Lower is better. If this value is not zero, the app will be lagging.
total_ns: u32The 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)