---
title: 函数：start
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0852.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0852.html
indexId: 3834863e99fb5a1ebc815ea80372619791b480526196abc368ed9007664171bd71
---
# 函数：start

#### 产品支持情况

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


#### 功能说明

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

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


#### 函数原型

- C函数原型
  1 aclError aclprofStart(const aclprofConfig *profilerConfig)

- python函数
  1 ret = acl.prof.start(profiler_config)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| profiler\_config | int，指定Profiling配置数据。 需提前调用acl.prof.create\_config接口创建aclprofConfig类型的数据。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码。 返回0表示成功。 返回其它值表示失败。 |


#### 约束说明

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