Skip to main content

Module profiler

Module profiler 

Source
Expand description

CUDA profiler control.

Start and stop the CUDA profiler programmatically, or use the ProfilerGuard RAII type to scope profiling to a block.

§Example

{
    let _guard = profiler::ProfilerGuard::start()?;
    // ... GPU work to profile ...
} // profiler stops here

Structs§

ProfilerGuard
RAII guard that starts the CUDA profiler on creation and stops it on drop.

Functions§

profiler_start
Starts the CUDA profiler (e.g. Nsight Systems / nvprof).
profiler_stop
Stops the CUDA profiler.