Struct comfy_wgpu::PerfCounters
source · pub struct PerfCounters {
pub counters: HashMap<Cow<'static, str>, Counter, RandomState>,
}Fields§
§counters: HashMap<Cow<'static, str>, Counter, RandomState>Implementations§
source§impl PerfCounters
impl PerfCounters
pub fn global() -> AtomicRef<'static, PerfCounters>
pub fn update_counter( &mut self, counter_name: impl Into<Cow<'static, str>>, count: u64 )
pub fn new_frame(&mut self, delta: f64)
pub fn get_counter(&self, counter_name: &str) -> (u64, f64)
pub fn reset_counters(&mut self)
Trait Implementations§
source§impl Default for PerfCounters
impl Default for PerfCounters
source§fn default() -> PerfCounters
fn default() -> PerfCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PerfCounters
impl Send for PerfCounters
impl Sync for PerfCounters
impl Unpin for PerfCounters
impl UnwindSafe for PerfCounters
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