MarkerData
Displays the instantaneous marker data of the mstx API. For details about the mstx API, see mstx API Use Case.
MarkerData refers to the struct of the MstxMonitor.start call. The definition is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | class MarkerData: self.kind # Activity record type MSPTI_ACTIVITY_KIND_MARKER. self.flag: MsptiActivityFlag # Marker data flag. self.source_kind: MsptiActivitySourceKind # Data source type. self.timestamp # Marker timestamp, in ns. If the timestamp is 0, the timestamp information of markers cannot be profiled. self.id # Marker ID. self.object_id: MsptiObjectId # Marker's process ID, thread ID, device ID, and stream ID. self.name # Marker name. The value is empty when the marker ends. self.domain # Marker's domain name. The default domain is default. class MsptiObjectId: PROCESS_ID = "processId" # Process ID. The value is fixed at -1 for device data. THREAD_ID = "threadId" # Thread ID. The value is fixed at -1 for device data. DEVICE_ID = "deviceId" # Device ID. The value is fixed at -1 for host data. STREAM_ID = "streamId" # Stream ID. The value is fixed at -1 for host data. |
Parent topic: Data Structure Type