https://developer.android.com/reference/android/app/usage/UsageStatsManager.html
Procstats makes it possible to see how your app is behaving over time — including how long it runs in the background and how much memory it uses during that time.
UsageStatsManager. Provides access to device usage history and statistics. Usage data is aggregated into time intervals: days, weeks, months, and years.
[Note] adb shell dumpsys procstats --details
[Note] adb shell dumpsys usagestats
No comments:
Post a Comment