FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    get

    fn get(self: &Self, counter: PerfCounter) -> u64
    

    The count of counter.

    Source

    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.

    Source

    virtual_calls_total

    fn virtual_calls_total(self: &Self) -> u64
    

    The number of virtual calls, of every member.

    Source

    since

    fn since(self: &Self, earlier: &PerfCountersSnapshot) -> PerfCountersSnapshot
    

    What was counted between earlier and this snapshot.

    Source

    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.

    Source

    report

    fn report(self: &Self) -> String
    

    The counters, one a line; then the virtual calls by member.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Display

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.