#[repr(C)]pub struct Perf {
pub platform: u64,
pub applets: u64,
pub waiting: u64,
}
Expand description
Time in micro-seconds since the scheduler started.
Values may not be accurate for a few reasons:
- Interrupts are accounted to the component they interrupt. Ideally it should be accounted to the platform only.
- Allocation in the applet by the platform is accounted to the platform instead of the applet.
- The board time is assumed to have a longer wrap period than any continuous component run time.
Fields§
§platform: u64
Time spent in the platform.
applets: u64
Time spent in applets.
waiting: u64
Time spent waiting for events.
Trait Implementations§
Source§impl SubAssign for Perf
Available on crate feature wasm
only.
impl SubAssign for Perf
Available on crate feature
wasm
only.Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for Perf
impl Pod for Perf
Auto Trait Implementations§
impl Freeze for Perf
impl RefUnwindSafe for Perf
impl Send for Perf
impl Sync for Perf
impl Unpin for Perf
impl UnwindSafe for Perf
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.