0

Can anyone help me out on getting just the system cpu usage value for use in a gui application.

Thanks

Sandeep Bansal
  • 6,280
  • 17
  • 84
  • 126
  • I guess this might be a very correct solution for your problem: [get-cpu-usage-from-application][1] [1]: http://stackoverflow.com/questions/8223348/ios-get-cpu-usage-from-application – holex Feb 21 '12 at 12:54

1 Answers1

0

I believe you need to use the host_processor_info call, but unfortunately there's little to no documentation out there. (Unfortunately, there's no nice Cocoa library for such things.)

As such, you might want to take a look at the source code for CPU Usage by Peter Hosey and see how he's solved the problem.

John Parker
  • 54,048
  • 11
  • 129
  • 129