|
NVTX++
3.0
C++ convenience wrappers for NVTX.
|
Object for intra-domain grouping of NVTX events. More...
#include <nvtx3.hpp>

Public Types | |
| using | id_type = uint32_t |
Type used for categorys integer id. | |
Public Member Functions | |
| constexpr | category (id_type id) noexcept |
Construct a category with the specified id. More... | |
| constexpr id_type | get_id () const noexcept |
| Returns the id of the category. | |
| category (category const &)=default | |
| category & | operator= (category const &)=default |
| category (category &&)=default | |
| category & | operator= (category &&)=default |
Object for intra-domain grouping of NVTX events.
A category is simply an integer id that allows for fine-grain grouping of NVTX events. For example, one might use separate categories for IO, memory allocation, compute, etc.
Example:
To associate a name string with a category id, see named_category.
|
inlineexplicitnoexcept |
Construct a category with the specified id.
The category will be unnamed and identified only by its id value.
All category objects sharing the same id are equivalent.
| [in] | id | The category's identifying value |
1.8.11