Xcode Some methods not found in Time Profiler -> Call tree

When using Time Profiler for finding the time needed for each method(executed) in iOS App. Some written(not system) method couldn’t appear in Call tree. (Please Note: Some of written methods appeared and some method don't)

Anything need to add/do in Instrument or filter for finding those missing methods in call tree.

Or is there any criteria for some methods not appearing in the call tree, Specially ViewController life cycle method or if less work done in some method.

viewDidLoad() sometimes found and sometimes not. viewWillAppear(), viewDidAppear(), viewWillDisappear(), viewDidDisappear() couldn't find any time.

Please clarify the issue. Thanks in advance.

Hi there,

Time Profiler takes a target app snapshot every x milliseconds and builds call tree based on it. It possible that some particular method is completed in duration between two snapshots. Therefore it will be missed in the call tree.

By default snapshots are taken every 1 millisecond. The duration can be changed to 0.1 millisecond in File -> Recording Options.. by selecting High Frequency option. It would be more chances for "small" functions to be captured in the call tree.

When it's possible to change source code and interesting methods is known in advance, other techniques can be used, e.g. Signposts. Take a look to following article for details Recording Performance Data

Xcode Some methods not found in Time Profiler -> Call tree
 
 
Q