You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get the amount of CPU being utilized by my app. I have searched for solutions online and all the answers suggest getting the details from /proc/stat which holds the details for all CPU numbers. I have tried the following solution posted on stackoverflow link and the following link.
However, It throws error java.io.FileNotFoundException: /proc/stat: open failed: EACCES (Permission denied)
On further searching of solution for this issue, I found out that the file /proc/stat/ has been disabled since Android 8.
So I request you kindly help me on getting the CPU usage details by this method or any alternate method.
Thank you
The text was updated successfully, but these errors were encountered:
Lazy12316
changed the title
How to get the CPU usage details for an app for Android 8+
How to get the CPU usage details of an app for Android 8+
Sep 2, 2019
Hi all,
I am trying to get the amount of CPU being utilized by my app. I have searched for solutions online and all the answers suggest getting the details from /proc/stat which holds the details for all CPU numbers. I have tried the following solution posted on stackoverflow link and the following link.
However, It throws error
java.io.FileNotFoundException: /proc/stat: open failed: EACCES (Permission denied)
On further searching of solution for this issue, I found out that the file /proc/stat/ has been disabled since Android 8.
So I request you kindly help me on getting the CPU usage details by this method or any alternate method.
Thank you
The text was updated successfully, but these errors were encountered: