pub struct CounterSet(/* private fields */);Expand description
A set of related GPU performance counters.
C++ equivalent: MTL::CounterSet
Counter sets group related counters together. You can query available counter sets from a device.
Implementations§
Source§impl CounterSet
impl CounterSet
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Get the name of this counter set.
C++ equivalent: NS::String* name() const
Sourcepub fn counters_raw(&self) -> *mut c_void
pub fn counters_raw(&self) -> *mut c_void
Get the counters in this counter set.
C++ equivalent: NS::Array* counters() const
Returns the raw NSArray pointer. Use with Foundation array iteration.
Sourcepub fn counter_count(&self) -> UInteger
pub fn counter_count(&self) -> UInteger
Get the number of counters in this counter set.
Sourcepub fn counter_at_index(&self, index: UInteger) -> Option<Counter>
pub fn counter_at_index(&self, index: UInteger) -> Option<Counter>
Get a counter at the specified index.
Trait Implementations§
Source§impl Clone for CounterSet
impl Clone for CounterSet
Source§impl Debug for CounterSet
impl Debug for CounterSet
Source§impl Drop for CounterSet
impl Drop for CounterSet
Source§impl Referencing for CounterSet
impl Referencing for CounterSet
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for CounterSet
impl Sync for CounterSet
Auto Trait Implementations§
impl Freeze for CounterSet
impl RefUnwindSafe for CounterSet
impl Unpin for CounterSet
impl UnwindSafe for CounterSet
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