Function: range_stop
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Records the end time of the time span by msproftx when an event occurs.
After this API is called, the profiling tool automatically records the end timestamp in stamp.
Prototype
-
C Prototype
aclError aclprofRangeStop(uint32_t *rangeId) -
Python Function
ret = acl.prof.range_stop(range_id)
Parameters
| Parameter | Description |
|---|---|
| range_id | Int, unique ID of a msproftx event stamp. Used to distinguish between threads. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code.0: successIf other values are returned, the operation fails. |
Constraints
- This API is used in pair with Function: range_start to indicate the start and end time of a time span.
- Cross-thread calls are supported.
- Call this API between Function: create_stamp and Function: destroy_stamp.