How can I get an ordered (number of calls) list of the most called functions in a run of my application?
eg:
1. <NSObject:0x000000:init>
2. <MyObject:0x000000:setPosition>
etc
Is this possible using build in xCode tools?
If not, is it possible to override objc_msgSend and implement this functionality?
I am aware of the possible overhead of this however it would only be used in testing.
Thank You,
Nonono
Use Instruments, particularly the Time Profiler instrument:
(You can see more fields like Total Samples instead of just time-based fields, if you right-click on the table header.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.