|
NVTX_DECLSPEC void NVTX_API | nvtxDomainMarkEx (nvtxDomainHandle_t domain, const nvtxEventAttributes_t *eventAttrib) |
| Marks an instantaneous event in the application. More...
|
|
NVTX_DECLSPEC void NVTX_API | nvtxMarkEx (const nvtxEventAttributes_t *eventAttrib) |
| Marks an instantaneous event in the application. More...
|
|
NVTX_DECLSPEC void NVTX_API | nvtxMarkA (const char *message) |
| Marks an instantaneous event in the application. More...
|
|
NVTX_DECLSPEC void NVTX_API | nvtxMarkW (const wchar_t *message) |
|
|
NVTX_DECLSPEC nvtxRangeId_t NVTX_API | nvtxDomainRangeStartEx (nvtxDomainHandle_t domain, const nvtxEventAttributes_t *eventAttrib) |
| Starts a process range in a domain. More...
|
|
NVTX_DECLSPEC nvtxRangeId_t NVTX_API | nvtxRangeStartEx (const nvtxEventAttributes_t *eventAttrib) |
| Starts a process range. More...
|
|
NVTX_DECLSPEC nvtxRangeId_t NVTX_API | nvtxRangeStartA (const char *message) |
| Starts a process range. More...
|
|
NVTX_DECLSPEC nvtxRangeId_t NVTX_API | nvtxRangeStartW (const wchar_t *message) |
|
NVTX_DECLSPEC void NVTX_API | nvtxDomainRangeEnd (nvtxDomainHandle_t domain, nvtxRangeId_t id) |
| Ends a process range. More...
|
|
NVTX_DECLSPEC void NVTX_API | nvtxRangeEnd (nvtxRangeId_t id) |
| Ends a process range. More...
|
|
|
NVTX_DECLSPEC int NVTX_API | nvtxDomainRangePushEx (nvtxDomainHandle_t domain, const nvtxEventAttributes_t *eventAttrib) |
| Starts a nested thread range. More...
|
|
NVTX_DECLSPEC int NVTX_API | nvtxRangePushEx (const nvtxEventAttributes_t *eventAttrib) |
| Starts a nested thread range. More...
|
|
NVTX_DECLSPEC int NVTX_API | nvtxRangePushA (const char *message) |
| Starts a nested thread range. More...
|
|
NVTX_DECLSPEC int NVTX_API | nvtxRangePushW (const wchar_t *message) |
|
NVTX_DECLSPEC int NVTX_API | nvtxDomainRangePop (nvtxDomainHandle_t domain) |
| Ends a nested thread range. More...
|
|
NVTX_DECLSPEC int NVTX_API | nvtxRangePop (void) |
| Ends a nested thread range. More...
|
|
See Markers and Ranges for more details
◆ nvtxDomainMarkEx()
NVTX_DECLSPEC void NVTX_API nvtxDomainMarkEx |
( |
nvtxDomainHandle_t |
domain, |
|
|
const nvtxEventAttributes_t * |
eventAttrib |
|
) |
| |
Marks an instantaneous event in the application.
A marker can contain a text message or specify additional information using the event attributes structure. These attributes include a text message, color, category, and a payload. Each of the attributes is optional and can only be sent out using the nvtxDomainMarkEx function.
nvtxDomainMarkEx(NULL, event) is equivalent to calling nvtxMarkEx(event).
- Parameters
-
domain | - The domain of scoping the category. |
eventAttrib | - The event attribute structure defining the marker's attribute types and attribute values. |
- See also
- nvtxMarkEx
- Version
- \NVTX_VERSION_2
◆ nvtxDomainRangeEnd()
NVTX_DECLSPEC void NVTX_API nvtxDomainRangeEnd |
( |
nvtxDomainHandle_t |
domain, |
|
|
nvtxRangeId_t |
id |
|
) |
| |
Ends a process range.
- Parameters
-
domain | - The domain |
id | - The correlation ID returned from a nvtxRangeStart call. |
- Example:
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.message.ascii = "my range";
NVTX_DECLSPEC nvtxDomainHandle_t NVTX_API nvtxDomainCreateA(const char *name)
Register a NVTX domain.
@ NVTX_MESSAGE_TYPE_ASCII
NVTX_DECLSPEC void NVTX_API nvtxDomainRangeEnd(nvtxDomainHandle_t domain, nvtxRangeId_t id)
Ends a process range.
NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxDomainRangeStartEx(nvtxDomainHandle_t domain, const nvtxEventAttributes_t *eventAttrib)
Starts a process range in a domain.
- See also
- nvtxDomainRangeStartEx
- Version
- \NVTX_VERSION_2
◆ nvtxDomainRangePop()
NVTX_DECLSPEC int NVTX_API nvtxDomainRangePop |
( |
nvtxDomainHandle_t |
domain | ) |
|
Ends a nested thread range.
- Returns
- The level of the range being ended. If an error occurs a negative value is returned on the current thread.
- Example:
nvtxDomainHandle_t domain = nvtxDomainCreate("example library");
nvtxDomainRangePushA(domain, "Level 0");
nvtxDomainRangePushW(domain, L"Level 1");
NVTX_DECLSPEC int NVTX_API nvtxDomainRangePop(nvtxDomainHandle_t domain)
Ends a nested thread range.
- See also
- nvtxRangePushEx nvtxRangePushA nvtxRangePushW
- Version
- \NVTX_VERSION_2
◆ nvtxDomainRangePushEx()
NVTX_DECLSPEC int NVTX_API nvtxDomainRangePushEx |
( |
nvtxDomainHandle_t |
domain, |
|
|
const nvtxEventAttributes_t * |
eventAttrib |
|
) |
| |
Starts a nested thread range.
- Parameters
-
domain | - The domain of scoping. |
eventAttrib | - The event attribute structure defining the range's attribute types and attribute values. |
- Returns
- The 0 based level of range being started. This value is scoped to the domain. If an error occurs, a negative value is returned.
- Example:
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.color = 0xFFFF0000;
eventAttrib.message.ascii = "Level 0";
eventAttrib.message.unicode = L"Level 1";
@ NVTX_MESSAGE_TYPE_UNICODE
NVTX_DECLSPEC int NVTX_API nvtxDomainRangePushEx(nvtxDomainHandle_t domain, const nvtxEventAttributes_t *eventAttrib)
Starts a nested thread range.
- See also
- nvtxDomainRangePop
- Version
- \NVTX_VERSION_2
◆ nvtxDomainRangeStartEx()
NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxDomainRangeStartEx |
( |
nvtxDomainHandle_t |
domain, |
|
|
const nvtxEventAttributes_t * |
eventAttrib |
|
) |
| |
Starts a process range in a domain.
- Parameters
-
domain | - The domain of scoping the category. |
eventAttrib | - The event attribute structure defining the range's attribute types and attribute values. |
- Returns
- The unique ID used to correlate a pair of Start and End events.
- Example:
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.message.ascii = "my range";
- See also
- nvtxDomainRangeEnd
- Version
- \NVTX_VERSION_2
◆ nvtxMarkA()
NVTX_DECLSPEC void NVTX_API nvtxMarkA |
( |
const char * |
message | ) |
|
Marks an instantaneous event in the application.
A marker created using nvtxMarkA or nvtxMarkW contains only a text message.
- Parameters
-
message | - The message associated to this marker event. |
- Example:
nvtxMarkW(L"Example nvtxMarkW");
NVTX_DECLSPEC void NVTX_API nvtxMarkA(const char *message)
Marks an instantaneous event in the application.
- See also
- nvtxDomainMarkEx nvtxMarkEx
- Version
- \NVTX_VERSION_0
◆ nvtxMarkEx()
NVTX_DECLSPEC void NVTX_API nvtxMarkEx |
( |
const nvtxEventAttributes_t * |
eventAttrib | ) |
|
Marks an instantaneous event in the application.
A marker can contain a text message or specify additional information using the event attributes structure. These attributes include a text message, color, category, and a payload. Each of the attributes is optional and can only be sent out using the nvtxMarkEx function. If nvtxMarkA or nvtxMarkW are used to specify the marker or if an attribute is unspecified then a default value will be used.
- Parameters
-
eventAttrib | - The event attribute structure defining the marker's attribute types and attribute values. |
- Example:
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.color = 0xFF880000;
eventAttrib.message.ascii = "Example nvtxMarkEx";
NVTX_DECLSPEC void NVTX_API nvtxMarkEx(const nvtxEventAttributes_t *eventAttrib)
Marks an instantaneous event in the application.
- See also
- nvtxDomainMarkEx
- Version
- \NVTX_VERSION_1
◆ nvtxRangeEnd()
NVTX_DECLSPEC void NVTX_API nvtxRangeEnd |
( |
nvtxRangeId_t |
id | ) |
|
◆ nvtxRangePop()
NVTX_DECLSPEC int NVTX_API nvtxRangePop |
( |
void |
| ) |
|
Ends a nested thread range.
- Returns
- The level of the range being ended. If an error occurs a negative value is returned on the current thread.
- Example:
nvtxRangePushW(L"Level 1");
NVTX_DECLSPEC int NVTX_API nvtxRangePop(void)
Ends a nested thread range.
NVTX_DECLSPEC int NVTX_API nvtxRangePushA(const char *message)
Starts a nested thread range.
- See also
- nvtxRangePushEx nvtxRangePushA nvtxRangePushW
- Version
- \NVTX_VERSION_0
◆ nvtxRangePushA()
NVTX_DECLSPEC int NVTX_API nvtxRangePushA |
( |
const char * |
message | ) |
|
Starts a nested thread range.
- Parameters
-
message | - The event message associated to this range event. |
- Returns
- The 0 based level of range being started. If an error occurs a negative value is returned.
- Example:
nvtxRangePushW(L"Level 1");
- See also
- nvtxDomainRangePushEx nvtxRangePop
- Version
- \NVTX_VERSION_0
◆ nvtxRangePushEx()
NVTX_DECLSPEC int NVTX_API nvtxRangePushEx |
( |
const nvtxEventAttributes_t * |
eventAttrib | ) |
|
Starts a nested thread range.
- Parameters
-
eventAttrib | - The event attribute structure defining the range's attribute types and attribute values. |
- Returns
- The 0 based level of range being started. This level is per domain. If an error occurs a negative value is returned.
- Example:
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.color = 0xFFFF0000;
eventAttrib.message.ascii = "Level 0";
eventAttrib.message.unicode = L"Level 1";
NVTX_DECLSPEC int NVTX_API nvtxRangePushEx(const nvtxEventAttributes_t *eventAttrib)
Starts a nested thread range.
- See also
- nvtxDomainRangePushEx nvtxRangePop
- Version
- \NVTX_VERSION_1
◆ nvtxRangeStartA()
NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartA |
( |
const char * |
message | ) |
|
Starts a process range.
- Parameters
-
message | - The event message associated to this range event. |
- Returns
- The unique ID used to correlate a pair of Start and End events.
- Example:
nvtxRangeId_t r2 = nvtxRangeStartW(L"Range 2");
NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartA(const char *message)
Starts a process range.
NVTX_DECLSPEC void NVTX_API nvtxRangeEnd(nvtxRangeId_t id)
Ends a process range.
- See also
- nvtxRangeEnd nvtxRangeStartEx nvtxDomainRangeStartEx
- Version
- \NVTX_VERSION_0
◆ nvtxRangeStartEx()
NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartEx |
( |
const nvtxEventAttributes_t * |
eventAttrib | ) |
|
Starts a process range.
- Parameters
-
eventAttrib | - The event attribute structure defining the range's attribute types and attribute values. |
- Returns
- The unique ID used to correlate a pair of Start and End events.
- Example:
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.category = 3;
eventAttrib.color = 0xFF0088FF;
eventAttrib.message.ascii = "Example Range";
NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartEx(const nvtxEventAttributes_t *eventAttrib)
Starts a process range.
- See also
- nvtxRangeEnd nvtxDomainRangeStartEx
- Version
- \NVTX_VERSION_1