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 hereStructs§
- Profiler
Guard - 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.