跳转至

MstxMonitor.start

Product Support

Note: For details about Ascend product models, see Ascend Product Models.

Product Type Supported
Ascend 950 products
Atlas A3 training products/Atlas A3 inference products
Atlas A2 training products/Atlas A2 inference products
Atlas 200I/500 A2 inference products
Atlas inference products ×
Atlas training series products ×

Function Usage

Marks the start of the mstx profiling.

Function Prototype

def start(self, mark_cb : Callable[[MarkerData], None] = empty_callback, range_cb : Callable[[RangeMarkerData], None] = empty_callback) -> MsptiResult:

Parameter Description

Parameter Name

Input/Output

Description

mark_cb: Callable

Enter

.

is used to transfer the collected mstx instantaneous dotting data. The MarkerData structure is invoked.

range_cb: Callable

Enter

.

is used to transfer the collected mstx range data. The RangeMarkerData structure is called.

Return Values

If MsptiResult.MSPTI_SUCCESS is returned, the operation is successful. If MsptiResult.MSPTI_ERROR_INVALID_PARAMETER is returned, the callback function type is incorrect and the operation fails.