已合并
hidebug 补充 ProfilerOptions 扩展配置 API(26.1.0) #3819
hidebug 补充 ProfilerOptions 扩展配置 API(26.1.0) #3819
已合并
王俊龙创建于 11 天前
王俊龙
王俊龙
11 天前

背景:
hidebug 模块在 API 26.1.0 新增基于不透明指针 OH_HiDebug_ProfilerOptions 的扩展资源 Profiler 配置接口(Create/Destroy/7 个 Setter/StartProfilerWithOptions),并新增对应错误码与资源类型。本 PR 在 interface_native_header 仓的头文件参考中补充这些新增 API 的声明与中文 doxygen 注释。

改动内容:

  • hidebug.h:新增 OH_HiDebug_ProfilerOptions 前置声明,以及 CreateProfilerOptions/DestroyProfilerOptions/7 个 Setter/StartProfilerWithOptions 共 10 个接口声明及中文 doxygen 注释(@brief/@param/@return/@since 26.1.0)
  • hidebug_type.h:HiDebug_ErrorCode 新增 HIDEBUG_RES_PROF_INVALID_MAX_ASYNC_NESTING_DEPTH(11400431)、HIDEBUG_RES_PROF_INVALID_MAX_ASYNC_TASK_STACK_DEPTH(11400432);OH_HiDebug_ResourceType 新增 OH_RES_TYPE_DMA、OH_RES_TYPE_ASHMEM、OH_RES_TYPE_COMPOSITE_HEAP

影响范围:
仅 hidebug 模块 native 头文件参考(中文版),新增 API 声明与类型枚举,不影响已有接口。英文版(en)暂未同步(en 版本较旧,仅含 API 12 基础接口,需另行补齐 24/26.0.0 前置 API)。
https://gitcode.com/openharmony-sig/interface_native_header/issues/3360

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 王俊龙 的贡献)
openharmony_ci
openharmony_ci成员
11 天前 评论:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ciopenharmony_ci成员
11 天前 添加了label:dco检查成功
x_huahua
x_huahua11 天前进行代码检视2
zh-cn/native_sdk/hiviewdfx/hidebug/include/hidebug/hidebug.h
已过期
@@ -444,1 +444,4 @@
444444void OH_HiDebug_ReleaseAsyncContext(uint64_t ctx);
445+ 
446+/**
447+ * @brief 资源Profiler配置对象的前置声明。
x_huahua
x_huahua11 天前评论:

这话咋感觉读起来没太懂。
啥叫资源Profiler配置对象?

likedislike
System
系统消息系统
9 天前 评论:

changed this line on e528021f view diff detail

x_huahua
x_huahua11 天前进行代码检视2
zh-cn/native_sdk/hiviewdfx/hidebug/include/hidebug/hidebug.h
已过期
@@ -448,0 +457,4 @@
457+OH_HiDebug_ProfilerOptions* OH_HiDebug_CreateProfilerOptions(void);
458+ 
459+/**
460+ * @brief 释放通过OH_HiDebug_CreateProfilerOptions创建的配置对象。
x_huahua
x_huahua11 天前评论:
改动建议
460
- * @brief 释放通过OH_HiDebug_CreateProfilerOptions创建的配置对象。
460
+ * @brief 释放通过{@link OH_HiDebug_CreateProfilerOptions}创建的配置对象。
应用建议

非当前接口定义中出现的其余接口均需挂链接,其余自己排查一下。

likedislike
System
系统消息系统
9 天前 评论:

changed this line on e528021f view diff detail

x_huahua
x_huahua11 天前进行代码检视2
zh-cn/native_sdk/hiviewdfx/hidebug/include/hidebug/hidebug.h
已过期
@@ -444,0 +469,4 @@
469+/**
470+ * @brief 设置异步调用的最大嵌套深度(也称为最大嵌套层数)。
471+ * @param opts 指向OH_HiDebug_ProfilerOptions结构体的指针,不能为NULL
472+ * @param depth 允许的最大异步嵌套深度。
x_huahua
x_huahua11 天前评论:

取值范围是什么?uint32_t 里边的数都可以取?

likedislike
System
系统消息系统
9 天前 评论:

changed this line on e528021f view diff detail

此处折叠了54条消息 查看更多
openharmony_ciopenharmony_ci成员
4 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
4 天前 通过测试
openharmony_ci
openharmony_ci成员
4 天前 评论:

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

静态检查:

# check type result report
1 codeCheck pass >>>

likedislike
openharmony_ciopenharmony_ci成员
4 天前 关闭了关联的issue
openharmony_ciopenharmony_ci成员
4 天前 合入了pull request,合并节点 SHA:b1e131aee9511b445a5481069e31706edbe1ec6c