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 hereSafe 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.