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

#### 产品支持情况

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


#### 功能说明

为msproftx事件标记携带字符串描述，在Profiling解析并导出结果中msprof_tx summary数据展示。


#### 函数原型

```
aclError aclprofSetStampTraceMessage(void *stamp, const char *msg, uint32_t msgLen)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| stamp | 输入 | Stamp指针，指代msproftx事件标记。 指定aclprofCreateStamp接口的指针。 |
| msg | 输入 | Stamp信息字符串指针。 |
| msgLen | 输入 | 字符串长度。 |


#### 返回值说明

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


#### 约束说明

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