函数:range_stop
产品支持情况
产品 |
是否支持 |
---|---|
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
msproftx用于记录事件发生的时间跨度的结束时间。
调用此接口后,Profiling自动在Stamp中记录采集结束的时间戳。
函数原型
- C函数原型
1
aclError aclprofRangeStop(uint32_t *rangeId)
- python函数
1
ret = acl.prof.range_stop(range_id)
参数说明
参数名 |
说明 |
---|---|
range_id |
int,msproftx事件标记的唯一标识。用于在跨线程时区分。 |
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码。
|
约束说明
- 与函数:range_stop接口成对使用,表示时间跨度的开始和结束。
- 可以跨线程调用。
- 在函数:create_stamp接口和函数:destroy_stamp接口之间调用。
父主题: msproftx扩展接口