1# HiDebug 2 3### Introduction 4 5This sample shows how to use HiDebug APIs to obtain the memory usage of an application. The display effect is as follows: 6 7  8 9### Concepts 10 11**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. 12 13**Stack**: a component that provides a stack container where child components are successively stacked and the latter one overwrites the previous one. 14 15**@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. 16 17### Required Permissions 18 19N/A 20 21### Usage 22 231. 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. 24 252. Touch the **Debug** icon again. The debugging information page disappears. 26 27### Constraints 28 291. This sample can only be run on standard-system devices. 30 312. This sample is based on the stage model, which is supported from API version 9. 32 333. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. 34