---
title: aclprofMark
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_1270.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_1270.html
indexId: 8f97e09fdf391d52423af8d62f4690b68fa674d06b55c09232784713002d3d4e68
---
# aclprofMark

#### 产品支持情况

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


#### 功能说明

msproftx标记瞬时事件。

调用此接口后，Profiling自动在Stamp指针中加上当前时间戳，将Event type设置为Mark，表示开始一次msproftx采集。


#### 函数原型

```
aclError aclprofMark(void *stamp)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| stamp | 输入 | Stamp指针，指代msproftx事件标记。 指定aclprofCreateStamp接口的指针。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。


#### 约束说明

在aclprofCreateStamp接口和aclprofDestroyStamp接口之间调用。
