aclgrphProfStart
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
x |
|
√ |
|
√ |
|
x |
功能说明
下发Profiling请求,使能对应数据的采集。
函数原型
1 | Status aclgrphProfStart(aclgrphProfConfig *profiler_config) |
参数说明
参数名 |
输入/输出 |
说明 |
---|---|---|
profiler_config |
输入 |
profiling配置信息结构指针。 |
返回值说明
参数名 |
类型 |
说明 |
---|---|---|
- |
Status |
SUCCESS: 成功 其他:失败 |
约束说明
- 该接口在RunGraph之前调用,若在模型执行过程中调用,Profiling采集到的数据为调用aclgrphProfStart接口之后的数据,可能导致数据不完整。
- 该接口和aclgrphProfStop配对使用,先调用aclgrphProfStart接口再调用aclgrphProfStop接口。
- aclgrphProfInit > aclgrphProfStart > aclgrphProfStop > aclgrphProfFinalize为一条完整的接口调用流程,如果用户想要单进程内切换模型或图,做多轮执行的时候,也需要按照上述完整的流程执行,不支持某个接口的无序调用或并排多次调用。
父主题: 维测接口