Device侧数据

msproftx采集Device侧相关数据为msprof timeline数据msprof_*.json。

msprof_*.json在Chrome浏览器中展示如下。

关键字段说明如下。

表1 字段说明

字段名

字段含义

Title

选择某个组件的接口名称,例如本例选择的为Thread 194182的Muls接口。

Start

显示界面中时间轴上的时刻点,chrome trace自动对齐,单位ms。

Wall Duration

表示当前接口调用耗时,单位ms。

Mode

AscendCL API类型。

Process_Id

AscendCL API所在进程ID。

Thread_Id

AscendCL API所在线程ID。

Task Type

Task类型。

Stream Id

对应的Stream ID。本示例为Stream 25。

Task Id

对应的Task ID。

Aicore Time(ms)

该Task在AI Core上所有指令的总耗时,单位ms。

Total Cycle

该Task在AI Core上所有指令的cycle总数。

Compute Time

计算耗时,单位ms。

Memcpy Time

内存拷贝耗时,单位ms。

Task Time

Task任务耗时,单位ms。

Dispatch Time

分发耗时,单位ms。

Total Time

整个Task的执行时间,单位ms。