If I am having performance problems, what tools can I use to identify where my performance lags are coming from? I have used a System Panel Task Manager, Android System Info, System Manager Free and some others but none of them have really identified the problem children. System Panel Task Manager came the closest with it's historical look at CPU and memory usage but it didn't let me look at which apps were using how much resources over time.
Starting from Android 11 and up the security for controlling system dependent apps have been limited to root user only so modern android can do such automatically close unresponsive apps by default but if you run admin programs or debuggers it will interfere
How to activate Auto optimization From Settings , swipe up and tap Battery & device care . Tap More Options (three vertical dots) and then tap Auto Action . Enable Daily Auto Optimize to automatically optimize your phone once a day.