title: iOS cpu usage for each process using sysctl()?
body: <p><strong>Is there a way to get cpu usage for each process using sysctl() ?</strong> </p>
  
  <p>I'm trying to find a way to detect the launch of a specific application. It seems there's no way to get foreground running app information. So I guess if I can monitor cpu usage for that specific app I can monitor the cpu usage changes and roughly assume when the app launches. Is this possible at all? </p>
  
  <p><strong>I'm not planning to publish this app to apple appstore.</strong> </p>
  
  <p>This is only a research. So if there is ANY way to do this I'm glad to know.</p>