Struct fxprof_processed_profile::CpuDelta
source · pub struct CpuDelta { /* private fields */ }
Expand description
The amount of CPU time between thread samples.
This is used in the Firefox Profiler UI to draw an activity graph per thread.
A thread only runs on one CPU at any time, and can get scheduled off and on the CPU between two samples. The CPU delta is the accumulation of time it was running on the CPU.
Implementations§
source§impl CpuDelta
impl CpuDelta
sourcepub fn from_nanos(nanos: u64) -> Self
pub fn from_nanos(nanos: u64) -> Self
Create a CPU delta from integer nanoseconds.
sourcepub fn from_micros(micros: u64) -> Self
pub fn from_micros(micros: u64) -> Self
Create a CPU delta from integer microseconds.
sourcepub fn from_millis(millis: f64) -> Self
pub fn from_millis(millis: f64) -> Self
Create a CPU delta from float milliseconds.
Trait Implementations§
source§impl Ord for CpuDelta
impl Ord for CpuDelta
source§impl PartialEq<CpuDelta> for CpuDelta
impl PartialEq<CpuDelta> for CpuDelta
source§impl PartialOrd<CpuDelta> for CpuDelta
impl PartialOrd<CpuDelta> for CpuDelta
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CpuDelta
impl Eq for CpuDelta
impl StructuralEq for CpuDelta
impl StructuralPartialEq for CpuDelta
Auto Trait Implementations§
impl RefUnwindSafe for CpuDelta
impl Send for CpuDelta
impl Sync for CpuDelta
impl Unpin for CpuDelta
impl UnwindSafe for CpuDelta
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