camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

PSS for Camera2Basic is getting increased once you launched the app.

Open jai-bits opened this issue 4 years ago • 1 comments

Pre-Req: I am using Android Q version. Steps to reproduce:

  1. Open the Camera2Basic app.
  2. Select any camera say Back JPEG (0)
  3. Keep the app running.
  4. On the device collect PSS for this app. Something like this. target:/ # procrank | grep -i camera2 5455 5381720K 219916K 111828K 104916K com.android.example.camera2.basic target:/ # procrank | grep -i camera2 5455 5414488K 230008K 121916K 115000K com.android.example.camera2.basic procrank | grep -i camera2 5455 5815896K 411812K 303704K 296772K com.android.example.camera2.basic

You will notice that PSS of this app is increasing continuously till 900 MBand after 5-6 min it will come down to 200 MB. Which is not good for Low mem targets.

I did some investigation and found that Android Native heap is increasing. Please provide your thoughts.

jai-bits avatar Mar 24 '21 06:03 jai-bits

Somehow the increase in memory to 900MB initially is not visible in Android Memory Profiler and only via procrank. This is the StackOverflow link for the question https://stackoverflow.com/questions/66775766/pss-for-camera2basic-is-getting-increased-once-you-launched-the-app

zeitgeist12345 avatar Mar 24 '21 06:03 zeitgeist12345