I have implemented part of activity monitor using NSTAsk and NSPipe. This is very slow. Is there any other method to implement it ?
And also tell me how to get samples of prcesses.
I have implemented part of activity monitor using NSTAsk and NSPipe. This is very slow. Is there any other method to implement it ?
And also tell me how to get samples of prcesses.
I have implemented part of activity monitor using NSTAsk and NSPipe. This is very slow.
I rather doubt it.
Maybe your app or your helper tool is slow, but that's what Instruments is for.
Is there any other method to implement it ?
Yes. Look up “IPC” in the Xcode documentation viewer; there are many ways for two processes to communicate.
And also tell me how to get samples of prcesses.
The best way for a developer is Instruments's Time Profiler instrument. The other way, and the best for users (handy when they report a hang), is Activity Monitor's Sample Process button.