Function: range_stop
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
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
1aclError aclprofRangeStop(uint32_t *rangeId)
- Python Function
1ret = acl.prof.range_stop(range_id)
Parameter Description
|
Parameter |
Description |
|---|---|
|
range_id |
Int, unique ID of a msproftx event stamp. Used to distinguish between threads. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code.
|
Restrictions
- This API must be used in pair with Function: range_start to indicate the start and end time of a time span.
- Cross-thread calls are supported.
- This API must be called between Function: create_stamp and Function: destroy_stamp.
Parent topic: msproftx Extension APIs