目录

Analyzing Kernel-Mode Memory

Stack capturing of heap memory by DevEco

The Allocation template of DevEco Studio Profiler helps you analyze the information about heap memory allocation and release, memory mapping, and call stacks.

Procedure

  1. Open the IDE and choose Profiler.
  2. Click Allocation.
  3. Click Create Session to create a recording session.

  4. Select Memory from the filter.

  5. Click the button to start stack capturing.

  6. After the recording is complete, click the recording result and analyze the growth trend of each memory in Memory.

Memory Type Description

When these types of memory increase, serious problems such as system suspension and artifacts may occur. In such cases, rectify the problems as soon as possible. For details, see the analysis methods for ashmem and ION memory leaks in Analyzing Memory Leaks.