The memory usage of apps/atomic services during startup is a concern for profiling. To optimize the memory usage during the startup, you can use the allocation analysis task.
The way DevEco Profiler handles an analysis task depends on the running state of the target app:
- If you select an app that is not started yet, DevEco Profiler automatically starts the app to capture data when the task starts. After the capture is complete, the task enters the parsing phase.
- If a running app is selected, when the analysis task starts, DevEco Profiler stops the app and then starts it again to capture data. After the capture is complete, the task enters the parsing phase.
To start an allocation analysis task, click
next to the task in the task list.
After the analysis is complete, the data types displayed and processing methods used are consistent, regardless of the app's initial state (running or not). For details, see Overview and Filtering Memory Analysis Data.