Allows associating a message string with an NVTX event via its EventAttributes.
More...
#include <nvtx3.hpp>
|
|
using | value_type = nvtxMessageValue_t |
| |
Allows associating a message string with an NVTX event via its EventAttributes.
Associating a message with an NVTX event through its event_attributes allows for naming events to easily differentiate them from other events.
Every time an NVTX event is created with an associated message, the contents of the message string must be copied. This may cause non-trivial overhead in highly performance sensitive sections of code. Use of a nvtx3::registered_message is recommended in these situations.
Example:
Construct a message whose contents are specified by msg.
- Parameters
-
| msg | The contents of the message |
| nvtx3::message::message |
( |
std::string const & |
msg | ) |
|
|
inlinenoexcept |
Construct a message whose contents are specified by msg.
- Parameters
-
| msg | The contents of the message |
| nvtx3::message::message |
( |
std::string && |
| ) |
|
|
delete |
Disallow construction for std::string r-value.
message is a non-owning type and therefore cannot take ownership of an r-value. Therefore, constructing from an r-value is disallowed to prevent a dangling pointer.
Construct a message whose contents are specified by msg.
- Parameters
-
| msg | The contents of the message |
| nvtx3::message::message |
( |
std::wstring const & |
msg | ) |
|
|
inlinenoexcept |
Construct a message whose contents are specified by msg.
- Parameters
-
| msg | The contents of the message |
| nvtx3::message::message |
( |
std::wstring && |
| ) |
|
|
delete |
Disallow construction for std::wstring r-value.
message is a non-owning type and therefore cannot take ownership of an r-value. Therefore, constructing from an r-value is disallowed to prevent a dangling pointer.
Construct a message from a registered_message.
- Template Parameters
-
| D | Type containing name member used to identify the domain to which the registered_message belongs. Else, domain::global to indicate that the global NVTX domain should be used. |
- Parameters
-
| msg | The message that has already been registered with NVTX. |
The documentation for this class was generated from the following file: