Merged
【PR】: 修复npu_module_mem.csv未生成的问题 #2872
mei-feiyaoAdd on Jun 16
【PR】: 修复npu_module_mem.csv未生成的问题 #2872
Merged
Merged frommei-feiyao/runtimemodulememintocann/runtimemaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for mei-feiyao's contribution.)Jun 16 Added label: enhancement
Jun 16 Created pull request, commit 1c010624
Jun 16 Added label: cann-cla/yes
CANN-robot
Jun 16 Comments:
Jun 16 Comments:
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 |
|---|---|---|
| src/dfx | ✅ chenhao_1209, zhuliangying (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. 👍


mei-feiyao
Jun 16 Comments:
Jun 16 Comments:
compile


Jun 16 Pre merge succeeded (commit_id: 14eed66cb1ca8b80929e96b47a813a578b6bcb25)
Jun 16 Added label: ci-pipeline-running
CANN-robot
Jun 16 Comments:
Jun 16 Comments:
流水线任务触发成功
任务链接 [81273f3c2388469d9cbcac09269291f4][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof | ✅ SUCCESS | >>>>> | |
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| UT_Test_camodel_check | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> |
[2026-06-16 16:21:14] CI执行结束


Jun 16 Modify description of pull request
CANN-robot
Jun 16 Comments:
Jun 16 Comments:
流水线任务触发成功
任务链接 [f51ade99ff1849fa9ecfad26c7f685eb][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Check_Pr | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_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 16:10:04] CI执行结束


Jun 16 Added label: api-check-pass
Jun 16 Removed label: ci-pipeline-running
Jun 16 Added label: ci-pipeline-passed
Jun 16 Modify description of pull request
chenhao_1209
Jun 16 Comments:
Jun 16 Comments:
/lgtm


zhuliangying
Jun 16 Comments:
Jun 16 Comments:
/approve


Jun 16 Added label: lgtmapproved
Jun 16 Merged pull request
Pull Request
描述
请清晰准确地描述本次 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
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。