用于 NVTX 注释的工具单例类。 更多...
#include <nvtx.hpp>
公共成员函数 | |
NvtxManager (NvtxManager const &)=delete | |
NvtxManager & | operator= (NvtxManager const &)=delete |
NvtxManager (NvtxManager &&)=delete | |
NvtxManager & | operator= (NvtxManager &&)=delete |
静态公共成员函数 | |
static NvtxManager & | instance () noexcept |
static const nvtx_color_type & | default_color () noexcept |
返回默认颜色。 更多... | |
static const nvtx_color_type & | get_color_by_index (std::uint64_t idx) noexcept |
返回内部调色板(大小 n 是 2 的幂)中给定索引处的颜色。索引可能超出调色板大小,在这种情况下它会环绕,即 (idx mod n)。 更多... | |
static void | rename_current_thread (std::string_view new_name) noexcept |
在 KvikIO NVTX 域下重命名当前线程。 更多... | |
|
staticnoexcept |
返回默认颜色。
|
staticnoexcept |
返回内部调色板(大小 n 是 2 的幂)中给定索引处的颜色。索引可能超出调色板大小,在这种情况下它会环绕,即 (idx mod n)。
idx | 索引值。 |
|
staticnoexcept |
在 KvikIO NVTX 域下重命名当前线程。