pub struct KernelProfiler { /* private fields */ }
Expand description
Profiler for kernel execution
Implementations§
Source§impl KernelProfiler
impl KernelProfiler
pub fn new() -> Self
pub fn enable(&mut self)
pub fn disable(&mut self)
pub fn is_enabled(&self) -> bool
pub fn start_kernel(&self, name: &str) -> KernelTimer
pub fn end_kernel( &self, timer: KernelTimer, config: &LaunchConfig, bytes_processed: usize, operations: f64, )
pub fn get_stats(&self, name: &str) -> Option<KernelStats>
pub fn get_all_stats(&self) -> Vec<KernelStats>
pub fn print_summary(&self)
pub fn export_json(&self, path: &str) -> Result<(), CudaRustError>
pub fn clear(&self)
Sourcepub fn compare_kernels(
&self,
kernel1: &str,
kernel2: &str,
) -> Option<KernelComparison>
pub fn compare_kernels( &self, kernel1: &str, kernel2: &str, ) -> Option<KernelComparison>
Compare performance between two kernels
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KernelProfiler
impl RefUnwindSafe for KernelProfiler
impl Send for KernelProfiler
impl Sync for KernelProfiler
impl Unpin for KernelProfiler
impl UnwindSafe for KernelProfiler
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