已合并
feat(ability_runtime): add ARKTS_HEAP dump type for hidumper --show-arktsheap #20270
feat(ability_runtime): add ARKTS_HEAP dump type for hidumper --show-arktsheap #20270
已合并
denganliang创建于 16 天前
denganliang
16 天前

修改说明

hidumper --mem pid --show-arktsheap 提供 ability_runtime 侧支持:

  • MemDumpType 新增 ARKTS_HEAP = 5 枚举值
  • DumpRuntimeHelper 新增 DumpArktsHeapSize 方法
  • THREAD_NAME_MAX_LEN = 16 命名常量 + pthread_getname_np 返回值检查
  • 新增 DumpMem_0500 UT

关联 Issue

配套 PR

AI检视评分(使用本地代码检视skills扫描):

codecheck_report:
  schema_version: "1.0"
  scope: "ability_runtime PR #20270 (DumpArktsHeapSize)"
  round: 1
  commit_id: "3be6ac53298841ec86eaa7ca4b92a3075290bb03"
  change_id: "I5a23ab4a9fa6ade31464c0d3ed5d407495f996cf"
  report_id: "I5a23ab4a9fa6ade31464c0d3ed5d407495f996cf-R1"
  date: "2026-08-27"
  gate_decision: "approve"
  risk_level: "低"
  score: 95
  dimensions_required: ["security", "logic", "api"]
  dimensions_executed: ["security", "logic", "api"]
  findings_total: 2
  findings_by_severity: {"P0": 0, "P1": 0, "P2": 0, "P3": 2}
  gate_blockers: 0
  must_fix: 0
  followups: 2

评分:95/100 | 门禁决策:approve | 风险等级:低

扫描维度:security + logic + api | 原始发现 8 条 → Refute 后 P0=0 P1=0 P2=0 P3=2

详细报告见上方评论。

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 denganliang 的贡献)
Ddenganliang
16 天前 关联了issue:[新需求]: hidumper --mem pid --show-arktsheap 支持 ArkTS Heap 内存占用展示
afwk_helper成员
16 天前 评论:

开始进行AI检视!

AI review has been started, please wait...

likedislike
afwk_helper成员
16 天前 评论:
check type result report
start ai_review pass -
likedislike
denganliang
16 天前 评论:

static-check

likedislike
openharmony_ciopenharmony_ci成员
16 天前 添加了label:waiting_on_author
此处折叠了170条消息 查看更多
openharmony_ci
openharmony_ci成员
8 天前 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a9240f064650f998b47a353/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 ohos-sdk success NA >>>
2 dayu200 success success >>>
3 dayu200_tdd success NA >>>
4 hap_build success NA >>>
5 master_inner_build success(IGNORE) NA >>>
6 mac-sdk success NA >>>
7 ohos-host_mini_tdd success NA >>>
8 dayu600_7885 success success >>>
9 x86_64_virt success NA >>>

likedislike
openharmony_ci
openharmony_ci成员
8 天前 评论:

您好,Committer @jayleehw @zhangyafei-echo @littlejerry1 @jsjzju @wkljy @yzkp @ccllee1 @yangxuguang-huawei @li-weifeng2024 @wendel ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @jayleehw @zhangyafei-echo @littlejerry1 @jsjzju @wkljy @yzkp @ccllee1 @yangxuguang-huawei @li-weifeng2024 @wendel . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
openharmony_ciopenharmony_ci成员
8 天前 合入了pull request,合并节点 SHA:4580da4867cd6ea74d5ce754817a6a847a0ac312
openharmony_ciopenharmony_ci成员
8 天前 删除了label:waiting_for_review
openharmony_ciopenharmony_ci成员
8 天前 添加了label:merged