Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How can I get CPU utilization?: (3 Items)
   
How can I get CPU utilization?  
I need to monitor CPU average load in a C++ program. On Linux, I can get it by reading and parsing /proc/stat file. How 
to get this status value on QNX?

Allen Chen
Re: How can I get CPU utilization?  
There is some sample code here: http://www.qnx.com/support/knowledgebase.html?id=50130000000P9b5

Effectively, it simply looks at how busy the idle thread is. It may be of value to you.
Re: How can I get CPU utilization?  
Thank you very much!

Allen

在 2013-5-22,下午10:40,Shawn Unger <community-noreply@qnx.com> 写道:

> There is some sample code here: http://www.qnx.com/support/knowledgebase.html?id=50130000000P9b5
> 
> Effectively, it simply looks at how busy the idle thread is. It may be of value to you.
> 
> 
> 
> _______________________________________________
> 
> QNX Momentics Community Support
> http://community.qnx.com/sf/go/post101601
> To cancel your subscription to this discussion, please e-mail momentics-community-unsubscribe@community.qnx.com