msptiActivityKernel¶
msptiActivityKernel is the structure corresponding to the Activity Record type MSPTI_ACTIVITY_KIND_KERNEL. The definition is as follows:
typedef struct PACKED_ALIGNMENT {
msptiActivityKind kind; // Activity Record type MSPTI_ACTIVITY_KIND_KERNEL
uint64_t start; // Start timestamp of kernel execution on the NPU, in ns. If both the start and end timestamps are 0, the kernel timestamp information cannot be collected.
uint64_t end; // End timestamp of kernel execution, in ns. If both the start and end timestamps are 0, the kernel timestamp information cannot be collected.
struct {
uint32_t deviceId; // Device ID of the device where the kernel is running
uint32_t streamId; // Stream ID of the stream where the kernel is running
} ds;
uint64_t correlationId; // Unique ID generated by the Runtime when launching the kernel. Other activities can be associated with the kernel using this ID.
const char *type; // Kernel type
const char *name; // Kernel name, which is consistent in the entire activity record. You are advised not to change the name.
} msptiActivityKernel;