camera-samples
camera-samples copied to clipboard
PSS for Camera2Basic is getting increased once you launched the app.
Pre-Req: I am using Android Q version. Steps to reproduce:
- Open the Camera2Basic app.
- Select any camera say Back JPEG (0)
- Keep the app running.
- 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.
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