开发者

How to profile an app that uses IPC

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 sample开发者_开发技巧s 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜