Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8592153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:41:20+00:00 2026-06-11T23:41:20+00:00

I am trying to get the CPU usage of a given package. After some

  • 0

I am trying to get the CPU usage of a given package. After some research, I found a way to get the CPU usage of a process (reading /proc/[PID]/stat/ information) but I couldn’t find a way to go to the package level (a process can run many packages).

I’d say it’s impossible to do given that the SDK doesn’t offer such APIs to monitor CPU usage (as it does with memory usage) but I’d rather know what you think about this.

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:41:21+00:00Added an answer on June 11, 2026 at 11:41 pm

    You actually can do this, at least using private API’s. It’s also not a percentage, it’s instead stored as a collective “CPU time” which is used to measure power consumption. I did this a while back with a project I worked on. Check out this Google Code project. It requires using private APIs and I make no promises that those APIs still exist, but I did do it at one point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get total cpu usage in %. First I should start
I trying to get started with Google Perf Tools to profile some CPU intensive
I am trying to get PowerShell to give me the RAM and CPU usage,
I am trying to get the CPU usage and details of all the running
I am trying to use android.server.ProcessStats class to get cpu usage statistics (pcpu, idle
I'm trying to figure out how to get the CPU usage for a particular
I'm trying to get the CPU ID from the machine. I found the following
In Bash I'm trying to get the process with most %CPU. Once i get
Well I'm having a hell of a time trying to get my CPU down
I am trying to get some detailed performance information from an application my company

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.