- Main Page
- Modules
- Data Structures
- Related Pages

nvtxMarkA
nvtxMarkEx
nvtxMarkW
nvtxRangeEnd
nvtxRangePop
nvtxRangePushA
nvtxRangePushEx
nvtxRangePushW
nvtxRangeStartA
nvtxRangeStartEx
nvtxRangeStartW

NVTX_DECLSPEC nvtxRangeId_t NVTX_API nvtxRangeStartEx | ( | const nvtxEventAttributes_t * | eventAttrib | ) |

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.

Remarks:
  Ranges defined by Start/End can overlap.

Example:
  nvtxEventAttributes_t eventAttrib = {0};
  eventAttrib.version = NVTX_VERSION;
  eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
  eventAttrib.category = 3;
  eventAttrib.colorType = NVTX_COLOR_ARGB;
  eventAttrib.color = 0xFF0088FF;
  eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII;
  eventAttrib.message.ascii = "Example RangeStartEnd";
  nvtxRangeId_t rangeId = nvtxRangeStartEx(&eventAttrib);
  // ...
  nvtxRangeEnd(rangeId);

See also:
  nvtxRangeEnd

Version:
  Supported with NVTX version 1 or higher.