androidperformanceandroid-studioandroid-memoryandroid-profiler

Android Studio Profiler Memory Allocated N/A


Hi I am unable to view the allocated memory for my application when running the app on a real device/emulator, The profiler shows Allocated as N/A

below is the screenshot on how it looks,

enter image description here I am running android studio version 3.3.2, Is there anything else that needs to be configured.


Solution

  • I had the same issue and here's what I did to make it work. (This is effective when running on API level < 26 only)

    1. In Android Studio, go to the Configurations menu as shown in the image below and click on Edit Configurations.

    Edit Configurations menu

    1. Select your app configuration from the menu on the left (usually called "app").
    2. Click on the Profiling tab.
    3. Check "Enable advanced profiling".

    Configurations Enable Advanced Profiling