文档
注册

函数:start

C函数原型

aclError aclprofStart(const aclprofConfig *profilerConfig)

Python函数

ret = acl.prof.start(profiler_config)

函数功能

下发Profiling请求,使能对应数据的采集。

用户可根据需要,在模型执行过程中按需调用acl.prof.start接口,Profling采集到的数据为调用该接口之后的数据。

输入说明

profiler_config:int,指定Profiling配置数据。

需提前调用acl.prof.create_config接口创建aclprofConfig类型的数据。

返回值说明

ret:int,错误码。

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

约束说明

acl.prof.stop接口配对使用,先调用acl.prof.start接口再调用acl.prof.stop接口。

参考资源

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

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

当前产品无相关内容

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