开发者

How to profile an app that uses IPC

开发者 https://www.devze.com 2023-01-21 16:46 出处:网络
I have implemented part of activity monitor using NSTAsk and NSPipe. This is very slow. Is there any other method to implement it ?

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

精彩评论

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

关注公众号