---
title: aclprofEventAttributes
description: "```"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclcppdevg_03_1371_2.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclcppdevg_03_1371_2.html
indexId: 77dfcfcec6d88cebd7f44dd00cc0a3fe4b247f4abac665131f54eb157284ae1b70
---
# aclprofEventAttributes

```
typedef struct { 
    uint16_t version;
    uint16_t size;
    uint32_t messageType;   // MESSAGE_TYPE_TENSOR_INFO
    union Message {
        aclprofTensorInfo *tensorInfo;
    } message;
} aclprofEventAttributes;

typedef struct { 
    uint64_t opNameId;      // 通过uint64_t aclprofStr2Id(const char *message)转换
    uint64_t opTypeId;
    uint32_t resv;
    uint32_t tensorNum;
    uint32_t kernelType;
    uint32_t blockNums;
    void *stream;           // stream信息
    aclprofTensor *tensors;
} aclprofTensorInfo;

typedef struct {
    uint32_t type;          // tensor类型，0: input, 1: output
    uint32_t format;        // format类型: aclFormat
    uint32_t dataType;      // dataType类型 aclDataType
    uint32_t shapeDim;      // shape dim <= 8
    uint32_t shape[8];      // tensor内存大小
}aclprofTensor;

typedef enum{
    MESSAGE_TYPE_TENSOR_INFO = 0
}ProfMessageType;
```
