MstxMonitor.start
Function |
def start(self, mark_cb : Callable[[MarkerData], None] = empty_callback, range_cb : Callable[[RangeMarkerData], None] = empty_callback) -> MsptiResult: |
|---|---|
Function Description |
Marks the start of the mstx profiling. |
Input |
mark_cb: Callback function, used to pass mstx instantaneous marker data. The MarkerData struct is called. range_cb: Callback function, used to pass mstx range marker data. The RangeMarkerData struct is called. |
Return Value |
MsptiResult.MSPTI_SUCCESS indicates a successful operation, while MsptiResult.MSPTI_ERROR_INVALID_PARAMETER indicates a failure caused by an incorrect callback function type. |
Parent topic: MstxMonitor