文档
注册

函数:push

C函数原型

aclError aclprofPush(void *stamp)

Python函数

ret = acl.prof.push(stamp)

函数功能

msproftx用于记录事件发生的时间跨度的开始时间。同步接口。

调用此接口后,Profiling自动在Stamp指针中记录开始的时间戳,将Event type设置为Push/Pop。

函数:pop接口成对使用,表示时间跨度的开始和结束。

不能跨线程调用,若需要跨线程可使用函数:range_start/函数:range_stop接口。

函数:create_stamp接口和函数:destroy_stamp接口之间调用。

输入说明

stamp:int, Stamp指针地址,指代msproftx事件标记。指定acl.prof.create_stamp接口的指针。

返回值说明

ret:int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。

约束说明

注意事项

参考资源

接口调用示例,参见Profiling性能数据采集

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词