msptiActivityMemcpy

msptiActivityMemcpy is the struct of the activity record type MSPTI_ACTIVITY_KIND_MEMCPY, used to report memory copy activity information. The definition is as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
typedef struct PACKED_ALIGNMENT {
	msptiActivityKind kind;    // Activity record type MSPTI_ACTIVITY_KIND_MEMCPY.
	msptiActivityMemcpyKind copyKind;    // Memory copy type.
	uint64_t bytes;    // Number of bytes transferred in the memory copy operation.
	uint64_t start;    // Start timestamp of the memory copy operation, in ns.
	uint64_t end;    // End timestamp of the memory copy operation, in ns.
	uint32_t deviceId;    // ID of the device where the memory copy operation is performed.
	uint32_t streamId;    // Stream ID of the memory copy operation.
	uint64_t correlationId;    // Correlation ID of the memory copy operation.
	uint8_t isAsync;    // Whether to perform the memory copy operation using the asynchronous memory API.
} msptiActivityMemcpy;