|
NVTX C++ API Reference 1.0
C++ convenience wrappers for NVTX v3 C API
|
A domain-scoped handle to a user-registered NVTX scope. More...
#include <nvtx3.hpp>
Public Member Functions | |
| scope_in (char const *path, detail::scope_type parent=detail::scope_type::none(), uint64_t static_id=0) noexcept | |
| Register a scope in the given domain. | |
| scope_in (std::string const &path, detail::scope_type parent=detail::scope_type::none(), uint64_t static_id=0) noexcept | |
| Register a scope in the given domain from the specified path string. | |
| uint64_t | id () const noexcept |
The registered scope ID (NVTX_SCOPE_NONE on failure). | |
A domain-scoped handle to a user-registered NVTX scope.
Calls nvtxScopeRegister at construction to create a scope identified by a path, relative to an optional parent scope. The resulting scope ID can be used anywhere an NVTX scope is expected and, in particular, can be handed to scope_semantic::scope() through the implicit conversion to nvtx3::scope.
| D | NVTX domain (defaults to domain::global). |
|
inlineexplicitnoexcept |
Register a scope in the given domain.
| path | Path delimited by '/' characters, relative to parent. See nvtxScopeAttr_t for the full syntax. nullptr and "" are treated equivalently. |
| parent | Parent scope. Defaults to scope::none() (which the tool treats as root). |
| static_id | Optional static scope ID, which must be in [NVTX_SCOPE_ID_STATIC_START, NVTX_SCOPE_ID_DYNAMIC_START). Defaults to NVTX_SCOPE_NONE, which lets the tool assign a dynamic ID. |
|
inlineexplicitnoexcept |
Register a scope in the given domain from the specified path string.
| path | Path delimited by '/' characters, relative to parent. See nvtxScopeAttr_t for the full syntax. "" is treated equivalently to nullptr. |
| parent | Parent scope. Defaults to scope::none() (which the tool treats as root). |
| static_id | Optional static scope ID, which must be in [NVTX_SCOPE_ID_STATIC_START, NVTX_SCOPE_ID_DYNAMIC_START). Defaults to NVTX_SCOPE_NONE, which lets the tool assign a dynamic ID. |
|
inlinenoexcept |