文件最后提交记录最后更新时间
Issue: #I6DWU6 Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2303 修复Debug文本被Debug信息弹窗遮挡问题(0230) * 修复Debug文本遮挡问题 3 年前
Issue: #I6DWU6 Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
Issue: #I6DWU6 Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
Issue: #I6DWU6 Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
README.md

HiDebug

Introduction

This sample shows how to use HiDebug APIs to obtain the memory usage of an application. The display effect is as follows:

Concepts

HiDebug: a module that allows you to obtain the memory usage of an application, including the static heap memory (native heap) and proportional set size (PSS) occupied by the application process. It also allows you to export VM memory slices and collect VM CPU profiling data.

Stack: a component that provides a stack container where child components are successively stacked and the latter one overwrites the previous one.

@Builder: a decorator used for a method to define the declarative UI description of a component and quickly generate multiple layouts in a custom component.

Required Permissions

N/A

Usage

  1. Touch the Debug icon in the upper right corner of the page. The debugging information page is displayed, showing the memory usage of the application.

  2. Touch the Debug icon again. The debugging information page disappears.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample is based on the stage model, which is supported from API version 9.

  3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.