|
NVTX C++ API Reference 1.0
C++ convenience wrappers for NVTX v3 C API
|
Type-safe wrapper for NVTX scope identifiers. More...
#include <nvtx3.hpp>
Public Types | |
| using | value_type = uint64_t |
Public Member Functions | |
| constexpr | scope (value_type id) noexcept |
| Explicit constructor from a raw scope ID. | |
| constexpr value_type | get () const noexcept |
| Get the underlying scope ID. | |
Static Public Member Functions | |
| static constexpr scope | none () noexcept |
| No scope specified. | |
| static constexpr scope | root () noexcept |
| The root in a hierarchy. | |
| static constexpr scope | current_hw_machine () noexcept |
| Node/machine name. | |
| static constexpr scope | current_hw_socket () noexcept |
| static constexpr scope | current_hw_cpu_physical () noexcept |
| Physical CPU core. | |
| static constexpr scope | current_hw_cpu_logical () noexcept |
| Logical CPU core. | |
| static constexpr scope | current_hw_innermost () noexcept |
| Innermost HW execution context. | |
| static constexpr scope | current_hypervisor () noexcept |
| static constexpr scope | current_vm () noexcept |
| static constexpr scope | current_kernel () noexcept |
| static constexpr scope | current_container () noexcept |
| static constexpr scope | current_os () noexcept |
| static constexpr scope | current_sw_process () noexcept |
| Process scope. | |
| static constexpr scope | current_sw_thread () noexcept |
| Thread scope. | |
| static constexpr scope | current_sw_innermost () noexcept |
| Innermost SW execution context. | |
Type-safe wrapper for NVTX scope identifiers.
Scopes define the context in which a counter is meaningful, such as process-wide or thread-local.
Predefined scopes are available as static member functions. Custom scopes can be created using explicit construction from a raw scope ID (C interop) or in future versions via nvtxScopeRegister.
Example:
|
inlineexplicitconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |