Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per CPU times percentage #362

Closed
giampaolo opened this issue May 23, 2014 · 4 comments
Closed

Per CPU times percentage #362

giampaolo opened this issue May 23, 2014 · 4 comments

Comments

@giampaolo
Copy link
Owner

From g.rodola on April 07, 2013 23:40:35

Proposal  
A function similar to psutil.cpu_percent() but which provides utilization 
percentages for each specific CPU time (user, system, idle, etc.), as per: 
https://groups.google.com/forum/?fromgroups=#!topic/psutil/3u9Ylt-zHMA 

On what platforms would this be available?  
All 

Proposed API  
synopsis: cpu_times_percent(interval=0.1, percpu=False)

>>> import psutil
>>> psutil.cpu_times_percent()
cpupercent(user=4.8, nice=0.0, system=4.8, idle=90.5, iowait=0.0, irq=0.0, 
softirq=0.0, steal=0.0, guest=0.0, guest_nice=0.0)

'interval' and 'percpu' arguments have the same meaning as in 
psutil.cpu_percent()

Original issue: http://code.google.com/p/psutil/issues/detail?id=362

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 17:45:35

Fixed in revision e1d79a5533ef .

Status: FixedInSVN
Labels: Milestone-0.6.2

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:40

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:27

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant