Expand description
A safe rust FFI binding for the NVIDIA® Tools Extension SDK (NVTX). NVTX API doxygen documentation by NVIDIA® can be found here.
Examples
use nvtx::{range_pop, range_push};
range_push!("Hello World!");
// <-- Expensive algorithm here
range_pop!();use nvtx::{mark};
mark!("Operation A");
// <-- Expensive algorithm here
mark!("Operation B");
// <-- Expensive algorithm hereuse std::thread;
use nvtx::{name_thread};
name_thread!("Thread 1");
let handler = thread::spawn(|| {
name_thread!("Thread 2");
});
handler.join().unwrap();Macros
Marks an instantaneous event in the application.
Annotate an OS thread with a name.
Ends a nested thread range.
Starts a nested thread range.