Graphics Reference
In-Depth Information
But if you are having performance problems, looking at the CPU time is a good way to
determine if your performance is CPU-bound, and if so which methods need to be
optimized (see Figure 12.3).
Figure 12.3 The Time Profiler tool
Time Profiler has some options to help narrow down the display to show only methods we
care about. These can be toggled using checkboxes in the left sidebar. Of these, the most
useful for our purposes are as follows:
Separate by Thread —This groups methods by the thread in which they are
executing. If our code is split between multiple threads, this will help to identify
which ones are causing the problem.
Hide System Libraries —This hides all methods and functions that are part of
Apple's frameworks. This helps us to identify which of our own methods contain
bottlenecks. Since we can't optimize framework methods, it is often useful to toggle
this method to help narrow down the problem to something we can actually fix.
Show Obj-C Only —This allows us to hide everything except Objective-C method
calls. Most of the internal Core Animation code uses C or C++ functions, so this is a
Search WWH ::




Custom Search