PerfCountersSnapshot
struct · ferroui-base · v0.5.0
struct PerfCountersSnapshot
The counters of this thread at one moment, or the difference of two such
moments (since). Without the feature perf-counters it
holds nothing and every count reads zero.
Members
get
fn get(self: &Self, counter: PerfCounter) -> u64
The count of counter.
virtual_calls
fn virtual_calls(self: &Self) -> &[(&'static str, u64)]
The virtual calls by member ("Class::member", the class that
declares the member), the most called first.
virtual_calls_total
fn virtual_calls_total(self: &Self) -> u64
The number of virtual calls, of every member.
since
fn since(self: &Self, earlier: &PerfCountersSnapshot) -> PerfCountersSnapshot
What was counted between earlier and this snapshot.
plus
fn plus(self: &Self, other: &PerfCountersSnapshot) -> PerfCountersSnapshot
These counts and the ones of other together: the sum of what was
counted over several stretches of work.
report
fn report(self: &Self) -> String
The counters, one a line; then the virtual calls by member.
report_per
fn report_per(self: &Self, divisor: u64, unit: &str) -> String
The counters with, next to each, the count divided by divisor (the
rows recycled, the frames rendered): unit names what it counts.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneDebugDefaultStructuralPartialEqPartialEqEqDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.