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

#### 产品支持情况

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


#### 功能说明

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


#### 函数原型

- C函数原型
  1 aclError aclprofSetStampTraceMessage(void *stamp, const char *msg, uint32_t msgLen)

- python函数
  1 ret = acl.prof.set_stamp_trace_message(stamp, msg, msg_len)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| stamp | int，Stamp指针地址，指代msproftx事件标记。指定函数：create\_stamp接口的指针地址。 |
| msg | int，字符串内容地址。 |
| msg\_len | int，字符串长度。 |


#### 返回值说明

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


#### 约束说明

在函数：create_stamp接口和函数：destroy_stamp接口之间调用。
