msptiActivityMemory

msptiActivityMemory is the struct of the activity record type MSPTI_ACTIVITY_KIND_MEMORY, used to report memory activity information. The definition is as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
typedef struct PACKED_ALIGNMENT {
	msptiActivityKind kind;    // Activity record type MSPTI_ACTIVITY_KIND_MEMORY.
	msptiActivityMemoryOperationType memoryOperationType;    // Memory request (allocation or release) operation.
	msptiActivityMemoryKind memoryKind;    // Requested memory type.
	uint64_t correlationId;    // Correlation ID of the memory request operation. Each memory request operation is assigned a unique correlation ID.
	uint64_t start;    // Start timestamp of the memory request operation, in ns.
	uint64_t end;    // End timestamp of the memory request operation, in ns.
	uint64_t address;    // Allocated memory address.
	uint64_t bytes;    // Number of allocated memory bytes.
	uint32_t processId;    // ID of the memory request process.
	uint32_t deviceId;    // ID of the device where the memory request operation is performed.
	uint32_t streamId;    // Stream ID of the memory request operation. If the memory request operation is asynchronous, the stream ID is set to MSPTI_INVALID_STREAM_ID.
} msptiActivityMemory;