@Name(value="nvtxEventAttributes_v2") @Properties(inherit=nvToolsExt.class) public class nvtxEventAttributes_t extends Pointer
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.version = NVTX_VERSION;
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
\par Method 2: Initializing nvtxEventAttributes for a specific version
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.version = 1;
eventAttrib.size = (uint16_t)(sizeof(nvtxEventAttributes_v1));
If the caller uses Method 1 it is critical that the entire binary
layout of the structure be configured to 0 so that all fields
are initialized to the default value.
The caller should either use both NVTX_VERSION and
NVTX_EVENT_ATTRIB_STRUCT_SIZE (Method 1) or use explicit values
and a versioned type (Method 2). Using a mix of the two methods
will likely cause either source level incompatibility or binary
incompatibility in the future.
\par Settings Attribute Types and Values
\par Example:
// Initialize
nvtxEventAttributes_t eventAttrib = {0};
eventAttrib.version = NVTX_VERSION;
eventAttrib.size = NVTX_EVENT_ATTRIB_STRUCT_SIZE;
// Configure the Attributes
eventAttrib.colorType = NVTX_COLOR_ARGB;
eventAttrib.color = 0xFF880000;
eventAttrib.messageType = NVTX_MESSAGE_TYPE_ASCII;
eventAttrib.message.ascii = "Example";
In the example the caller does not have to set the value of
\ref ::nvtxEventAttributes_v2::category or
\ref ::nvtxEventAttributes_v2::payload as these fields were set to
the default value by {0}.::nvtxDomainRangeStartEx
::nvtxDomainRangePushEx
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
nvtxEventAttributes_t()
Default native constructor.
|
nvtxEventAttributes_t(long size)
Native array allocator.
|
nvtxEventAttributes_t(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
category()
\brief ID of the category the event is assigned to.
|
nvtxEventAttributes_t |
category(int setter) |
int |
color()
\brief Color assigned to this event.
|
nvtxEventAttributes_t |
color(int setter) |
int |
colorType()
\brief Color type specified in this attribute structure.
|
nvtxEventAttributes_t |
colorType(int setter) |
nvtxEventAttributes_t |
getPointer(long i) |
Pointer |
message()
\brief Message assigned to this attribute structure.
|
nvtxEventAttributes_t |
message(Pointer setter) |
int |
messageType()
\brief Message type specified in this attribute structure.
|
nvtxEventAttributes_t |
messageType(int setter) |
double |
payload_dValue() |
nvtxEventAttributes_t |
payload_dValue(double setter) |
float |
payload_fValue() |
nvtxEventAttributes_t |
payload_fValue(float setter) |
int |
payload_iValue() |
nvtxEventAttributes_t |
payload_iValue(int setter) |
long |
payload_llValue() |
nvtxEventAttributes_t |
payload_llValue(long setter) |
int |
payload_uiValue() |
nvtxEventAttributes_t |
payload_uiValue(int setter) |
long |
payload_ullValue()
\brief Payload assigned to this event.
|
nvtxEventAttributes_t |
payload_ullValue(long setter) |
int |
payloadType()
\brief Payload type specified in this attribute structure.
|
nvtxEventAttributes_t |
payloadType(int setter) |
nvtxEventAttributes_t |
position(long position) |
int |
reserved0() |
nvtxEventAttributes_t |
reserved0(int setter) |
short |
size()
\brief Size of the structure.
|
nvtxEventAttributes_t |
size(short setter) |
short |
version()
\brief Version flag of the structure.
|
nvtxEventAttributes_t |
version(short setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public nvtxEventAttributes_t()
public nvtxEventAttributes_t(long size)
Pointer.position(long)
.public nvtxEventAttributes_t(Pointer p)
Pointer(Pointer)
.public nvtxEventAttributes_t position(long position)
public nvtxEventAttributes_t getPointer(long i)
getPointer
in class Pointer
@Cast(value="uint16_t") public short version()
public nvtxEventAttributes_t version(short setter)
@Cast(value="uint16_t") public short size()
public nvtxEventAttributes_t size(short setter)
@Cast(value="uint32_t") public int category()
public nvtxEventAttributes_t category(int setter)
public int colorType()
public nvtxEventAttributes_t colorType(int setter)
@Cast(value="uint32_t") public int color()
public nvtxEventAttributes_t color(int setter)
public int payloadType()
public nvtxEventAttributes_t payloadType(int setter)
public int reserved0()
public nvtxEventAttributes_t reserved0(int setter)
@Name(value="payload.ullValue") @Cast(value="uint64_t") public long payload_ullValue()
public nvtxEventAttributes_t payload_ullValue(long setter)
public nvtxEventAttributes_t payload_llValue(long setter)
public nvtxEventAttributes_t payload_dValue(double setter)
public nvtxEventAttributes_t payload_uiValue(int setter)
public nvtxEventAttributes_t payload_iValue(int setter)
public nvtxEventAttributes_t payload_fValue(float setter)
public int messageType()
public nvtxEventAttributes_t messageType(int setter)
@ByRef @Cast(value="nvtxMessageValue_t*") public Pointer message()
public nvtxEventAttributes_t message(Pointer setter)
Copyright © 2024. All rights reserved.