pub struct AccelTelemetry { /* private fields */ }Implementations§
Source§impl AccelTelemetry
impl AccelTelemetry
pub fn new() -> Self
pub fn record_upload_bytes(&self, bytes: u64)
pub fn record_download_bytes(&self, bytes: u64)
pub fn record_fused_elementwise(&self, wall_ns: u64)
pub fn record_fused_reduction(&self, wall_ns: u64)
pub fn record_matmul(&self, wall_ns: u64)
pub fn record_linsolve(&self, wall_ns: u64)
pub fn record_mldivide(&self, wall_ns: u64)
pub fn record_mrdivide(&self, wall_ns: u64)
pub fn record_solve_fallback(&self, reason: &'static str)
pub fn reset(&self)
pub fn snapshot( &self, fusion_cache_hits: u64, fusion_cache_misses: u64, bind_group_cache_hits: u64, bind_group_cache_misses: u64, bind_group_cache_by_layout: Option<Vec<BindGroupLayoutTelemetry>>, ) -> ProviderTelemetry
Source§impl AccelTelemetry
impl AccelTelemetry
pub fn record_fused_elementwise_duration(&self, duration: Duration)
pub fn record_fused_reduction_duration(&self, duration: Duration)
pub fn record_matmul_duration(&self, duration: Duration)
pub fn record_linsolve_duration(&self, duration: Duration)
pub fn record_mldivide_duration(&self, duration: Duration)
pub fn record_mrdivide_duration(&self, duration: Duration)
pub fn record_kernel_launch( &self, kernel: &'static str, precision: Option<&str>, shape: &[(&str, u64)], tuning: &[(&str, u64)], )
Trait Implementations§
Source§impl Default for AccelTelemetry
impl Default for AccelTelemetry
Source§fn default() -> AccelTelemetry
fn default() -> AccelTelemetry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for AccelTelemetry
impl RefUnwindSafe for AccelTelemetry
impl Send for AccelTelemetry
impl Sync for AccelTelemetry
impl Unpin for AccelTelemetry
impl UnsafeUnpin for AccelTelemetry
impl UnwindSafe for AccelTelemetry
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.