NVTX C API Reference v3
NVIDIA Tools Extension Library
|
NVTX_DECLSPEC nvtxDomainHandle_t NVTX_API | nvtxDomainCreateA (const char *name) |
Register a NVTX domain. | |
NVTX_DECLSPEC nvtxDomainHandle_t NVTX_API | nvtxDomainCreateW (const wchar_t *name) |
NVTX_DECLSPEC void NVTX_API | nvtxDomainDestroy (nvtxDomainHandle_t domain) |
Unregister a NVTX domain. | |
Domains are used to group events to a developer defined scope. Middleware vendors may also scope their own events to avoid collisions with the the application developer's events, so that the application developer may inspect both parts and easily differentiate or filter them. By default all events are scoped to a global domain where NULL is provided or when using APIs provided b versions of NVTX below v2
Domains are intended to be typically long lived objects with the intention of logically separating events of large modules from each other such as middleware libraries from each other and the main application.
See Domains for more details
NVTX_DECLSPEC nvtxDomainHandle_t NVTX_API nvtxDomainCreateA | ( | const char * | name | ) |
Register a NVTX domain.
Domains are used to scope annotations. All NVTX_VERSION_0 and NVTX_VERSION_1 annotations are scoped to the global domain. The function nvtxDomainCreate creates a new named domain.
Each domain maintains its own nvtxRangePush and nvtxRangePop stack.
name | - A unique string representing the domain. |
NVTX_DECLSPEC void NVTX_API nvtxDomainDestroy | ( | nvtxDomainHandle_t | domain | ) |
Unregister a NVTX domain.
Unregisters the domain handle and frees all domain specific resources.
domain | - the domain handle |