---
title: aclgrphProfStart
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0130.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0130.html
indexId: b9a19777c72445f58a865de8cc6950aca66d6cf8a6fce51716f040a0dbefded172
---
# aclgrphProfStart

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 头文件/库文件

- 头文件：#include <ge/ge_prof.h>
- 库文件：libmsprofiler.so


#### 功能说明

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


#### 函数原型

```
Status aclgrphProfStart(aclgrphProfConfig *profiler_config)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| profiler\_config | 输入 | Profiling配置信息结构指针。 |


#### 返回值说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| \- | Status | SUCCESS：成功 其他：失败 |


#### 约束说明

- 该接口在  RunGraph
之前调用，若在模型执行过程中调用，Profiling采集到的数据为调用aclgrphProfStart接口之后的数据，可能导致数据不完整。
- 该接口和aclgrphProfStop配对使用，先调用aclgrphProfStart接口再调用aclgrphProfStop接口。
- aclgrphProfInit > aclgrphProfStart > aclgrphProfStop > aclgrphProfFinalize为一条完整的接口调用流程，如果用户想要单进程内切换模型或图，做多轮执行的时候，也需要按照上述完整的流程执行，不支持某个接口的无序调用或并排多次调用。
