已合并
fix npu_module_mem.csv timestamp err #321
mei-feiyao创建于 6月16日
fix npu_module_mem.csv timestamp err #321
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 mei-feiyao 的贡献)6月16日 关联了issue:[Bug]: 开启profile_memory,未生成npu_module_mem.csv文件
mei-feiyao
6月16日 评论:
6月16日 评论:
compile


6月16日 添加了label:cann-cla/yes
CANN-robot
6月16日 评论:
6月16日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/oam-tools | ✅ zhuliangying, chenhao_1209 (2/2) | ✅ zhuliangying (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
mei-feiyao, thanks for your pull request. All authors of the commits have signed the CLA. 👍


6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [e9cb3e3f4bae4771910f00e55ab7bb49][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| cocheck_codestyle | ✅ SUCCESS | ||
| precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| UT_Test | ❌ FAILED | >>>>> |


6月16日 删除了label:ci-pipeline-running
6月16日 添加了label:ci-pipeline-failed
CANN-robot
6月16日 评论:
6月16日 评论:
流水线 PR-pipeline_cann_oam-tools#1038 [ commitID:25cadb6b ] 运行失败


mei-feiyao
6月16日 评论:
6月16日 评论:
compile


6月16日 删除了label:ci-pipeline-failed
6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [31e5fdc170e641c2852417fce9e2b406][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | ||
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| cocheck_codestyle | ✅ SUCCESS | ||
| precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-06-16 19:18:00] CI执行结束


6月16日 强制推送 1 个提交:7fdd9900-fix npu_module_mem.csv timestamp err
mei-feiyao
6月16日 评论:
6月16日 评论:
compile


6月16日 删除了label:ci-pipeline-running
6月16日 添加了label:ci-pipeline-passed
CANN-robot
6月16日 评论:
6月16日 评论:
流水线 PR-pipeline_cann_oam-tools#1039 [ commitID:25cadb6b ] 已终止运行


mei-feiyao
6月16日 评论:
6月16日 评论:
compile


6月16日 删除了label:ci-pipeline-passed
6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:


6月16日 删除了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线 PR-pipeline_cann_oam-tools#1040 [ commitID:7fdd9900 ] 已终止运行


6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [a46f12e85da941b1af2052339006cdef][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | ||
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| cocheck_codestyle | ✅ SUCCESS | ||
| precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| UT_Test | ✅ SUCCESS | >>>>> |
[2026-06-16 19:28:50] CI执行结束


6月16日 删除了label:ci-pipeline-running
6月16日 添加了label:ci-pipeline-passed
CANN-robot
6月16日 评论:
6月16日 评论:
流水线 PR-pipeline_cann_oam-tools#1041 [ commitID:7fdd9900 ] 已完成


6月16日 添加了label:SC-SUCC
zhuliangying
6月16日 评论:
6月16日 评论:
/approve


6月16日 添加了label:approved
chenhao_1209
6月16日 评论:
6月16日 评论:
/lgtm


6月16日 添加了label:lgtm
6月16日 合入了pull request
描述
问题现象:本地采集profiler内存数据未生成npu_module_mem.csv;
问题原因:prof采集host侧数据时timestamp值可能采用syscnt或monotonic(取决于是否从驱动获取host freq),工具采集module_mem数据下发的采集配置同理需要配置1或0用于通知底软组件上报syscnt或monotonic,即代码里的res1字段;
修复方案:调用PlatformHostFreqIsEnable,如果为true,则配置1,通知底软上报snscnt,否则下发0,通知底软上报monotonic
关联的Issue
https://gitcode.com/Ascend/msprof/issues/73
测试
1.环境安装构建run包;
2.执行msprof采集命令,开启sys-hardware-mem开关;
3.观察生成的数据文件是否有npu_module_mem.csv
文档更新
类型标签