Skip to main content

dynamo_nvtx_range

Macro dynamo_nvtx_range 

Source
macro_rules! dynamo_nvtx_range {
    ($fmt:literal $(, $arg:expr)* $(,)?) => { ... };
    ($name:expr) => { ... };
}
Expand description

Open a named NVTX range that closes automatically at end of scope.

ⓘ
let _r = dynamo_nvtx_range!("preprocess.tokenize");
let _r = dynamo_nvtx_range!("backend.decode.{}", request_id);
// range closes here

Safe to hold across .await: the range is an NVTX start/end pair, not a thread-local push/pop. Zero-cost when the nvtx Cargo feature is off.