跳转至

msptiActivityMemset

msptiActivityMemset is the structure corresponding to the Activity Record type MSPTI_ACTIVITY_KIND_MEMSET. It is used to report the Memset activity information. The definition is as follows:

typedef struct PACKED_ALIGNMENT {
    msptiActivityKind kind; // Activity Record type MSPTI_ACTIVITY_KIND_MEMSET
    uint32_t value; // Target value set by Memset
    uint64_t bytes; // Number of bytes set by Memset
    uint64_t start; // Start timestamp of the Memset operation, in ns
    uint64_t end; // End timestamp of the Memset operation, in ns
    uint32_t deviceId; // ID of the device where the Memset operation is performed
    uint32_t streamId; // Stream ID of the Memset operation
    uint64_t correlationId; // Correlation ID of the Memset operation
    uint8_t isAsync; // Whether the memory is set using asynchronous memory APIs.
} msptiActivityMemset;