![]() ![]() ![]() The bottom bar contains controls to filter the information that appears in the detail view. For most instruments the extended detail view shows the call stack. The extended detail view shows additional statistics. The detail view shows the profiling statistics. The jump bar allows you to choose what to show in the detail view. The graph is going to be empty until you start recording. The instrument list shows the instruments being used in the trace along with a graph for each instrument. ![]() The toolbar also has controls to choose an app to profile, add an instrument to the trace, and show/hide different parts of the trace document window. Running from top to bottom, the main areas of the trace document window are the following:įor this article the only toolbar items you need to worry about are the buttons to start/stop recording and pause recording on the left side of the toolbar. When you click the Choose button, an empty trace document window opens in Instruments. The Leaks template include both the Leaks and Allocations instruments. Select the Leaks template and click the Choose button. When Instruments launches, you will be asked to choose a template. The easiest way to launch Instruments is to profile your project by choosing Product > Profile in Xcode. Launching Instrumentsīecause Instruments is located inside Xcode’s app bundle, you won’t be able to find it in the Finder. But if your iOS app is generating memory warnings when you run it or your app runs really slow, you’ll want to profile the app with Instruments. You normally use Instruments when you get closer to shipping an app. If you’re learning iOS or Mac development, you’re not going to use Instruments at first. The Time Profiler instrument measures CPU usage and helps you find the slow spots in your code.The Allocations instrument records statistics about memory allocations.The Leaks instrument checks your app for memory leaks.Some popular instruments include the following: Instruments comes with a collection of instruments, each of which records a specific set of statistics. Instruments is an app that is bundled with Xcode to record and display statistics about your app as it runs. After reading this article you’ll know how to interpret the data Instruments generates for the Allocations and Leaks instruments and learn tips you can use with other instruments. On Stack Overflow I see many questions from people who have trouble interpreting the data Instruments generates. ![]()
0 Comments
Leave a Reply. |