Is there a way to get cpu usage for each process using sysctl() ?
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?
I'm not planning to publish this app to apple appstore.
This is only a research. So if there is ANY way to do this I'm glad to know.
Go through the following process 1. Import Following Files
2. Add ivars
3.IN .m file
}