- Main Page
- Modules
- Data Structures
- Related Pages

nvtxMarkA
nvtxMarkEx
nvtxMarkW
nvtxRangeEnd
nvtxRangePop
nvtxRangePushA
nvtxRangePushEx
nvtxRangePushW
nvtxRangeStartA
nvtxRangeStartEx
nvtxRangeStartW

NVTX_DECLSPEC int NVTX_API nvtxRangePushEx | ( | const nvtxEventAttributes_t * | eventAttrib | ) |

Parameters:

  eventAttrib | - The event attribute structure defining the range's attribute types and attribute values.

Returns:
  The 0 based level of range being started. If an error occurs a negative value is returned.

Example:
  nvtxEventAttributes_t eventAttrib = {0};
  eventAttrib.version = NVTX_VERSION;
  eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
  eventAttrib.colorType = NVTX_COLOR_ARGB;
  eventAttrib.color = 0xFFFF0000;
  eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII;
  eventAttrib.message.ascii = "Level 0";
  nvtxRangePushEx(&eventAttrib);
  // Re-use eventAttrib
  eventAttrib.messageType = NVTX_MESSAGE_TYPE_UNICODE;
  eventAttrib.message.unicode = L"Level 1";
  nvtxRangePushEx(&eventAttrib);
  nvtxRangePop();
  nvtxRangePop();

See also:
  nvtxRangePop

Version:
  Supported with NVTX version 1 or higher.