RangeMarkerData

Displays the range marker data of the mstx API. For details about the mstx API, see mstx API Use Case.

RangeMarkerData 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 RangeMarkerData:
	self.kind   # Activity record type MSPTI_ACTIVITY_KIND_MARKER.
	self.source_kind: MsptiActivitySourceKind   # Data source type.
	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.
	self.start   # Start time for range markers. It defaults to 0.
	self.end   # End time for range markers. It defaults to 0.
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.