Pull Request已成功合入, 合并人@ascend-robot
(感谢 mei-feiyao 的贡献)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-Ascend/msprof | ✅ fanhong, eejiechu (2/2) | ✅ fanhong (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. 👍


compile


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


[review]
问题:WARN 日志格式字符串为 "Unpaired range data with index_id % for device id %.",占位符不完整。
影响:日志可能无法正确打印 currIndexId 和 deviceId,甚至在部分日志宏实现下出现格式化异常。
建议:根据项目日志宏格式修正占位符,例如 printf 风格应写为:
WARN("Unpaired range data with index_id %u for device id %u.", currIndexId, deviceId);
如果项目使用 fmt 风格,则写为:
WARN("Unpaired range data with index_id {} for device id {}.", currIndexId, deviceId);


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


[review]
问题:duration 使用 timeSecond - timeFirst 计算,但没有校验 timeSecond >= timeFirst。
影响:如果时间换算异常、数据乱序或 end 早于 start,uint64_t 相减会发生下溢,得到一个非常大的 duration,影响后续展示和分析。
建议:计算前增加判断:
if (timeSecond < timeFirst) {
WARN(...);
idx += 2;
continue;
}
或者将该条数据标记为异常。


Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


PR 合入模板
注:经过自检不涉及的可标注“不涉及”或直接打勾,特殊情况请文字备注。不符合规范的 PR 不允许合入,请(后备)commit 注意。
1. 修改描述
1.aclgraph场景,在capture的阶段内调用mstx打点接口进行打点的话,打点的task会被捕捉到图里。当该图多次replay时,会多次执行相同的打点task,最终采集到的device打点数据里index_id字段也会重复;
2.解析device打点数据的逻辑未适配该场景,最终解析时使用相同index_id的最早打点时间作为开始时间,使用最晚打点时间作为结束时间,最终呈现的device打点耗时错误。
1.cann 9.1.0以后,mark打点tag id是11,range打点tag id是12,增加方法判断数据对应的cann版本信息;
2.修改解析逻辑,判断是9.1.0以后的cann,将相同index_id的打点数据按时间排序后,每两个匹配,作为一段打点的开始和结束打点;否则保持之前的逻辑
3.生成tx.csv时,以前只会生成相同mark id里的最后一条数据,现在修复保留并生成所有的打点数据
4.C化部分修改device tx数据的处理逻辑,对于tagid是11的数据直接保存,对于tagid是12的数据先按index id和timestamp排序,再两两配对,拼接成range
2. 功能验证
功能自验



本地自验用例截图
冒烟是否通过 (填入群链接的自验证报告中,如未通过,请说明原因:____________________ ,功能代码请主动申报添加冒烟)
3. 分支合并要求
3. 代码检视
要求:
是否经过代码检视
是否具备 UT 测试用例看护 (如不符合,请说明原因:____________________)
检视意见数:____ 条 (请填写本次检视的意见总数,用于commit合入前审视)
4. 安全自检
Python、C++
C++
5. 变更知会