In this recipe, we will learn how to use the Activity Monitor Instrument to monitor performance of your operating system and computer's hard drive.
In this section, we will learn how to use the Instruments to check the virtual memory to see if thrashing (excessive paging) is occurring or if the VM size is growing excessively, indicating over-retained auto released objects.
To begin, follow the following outlined simple steps:
Select the TwitterExample option from the Project Navigator window.
Navigate to Product | Build For | Profiling, from the Product menu, or alternatively using the keyboard shortcut Shift + Command + I.
Next, choose Profile from the Product menu to launch the Instruments application. Similarly, you can use the keyboard shortcut Command + I.
Next, choose the Activity Monitor option from the list of available templates.
Click on the Profile button to start profiling our TwitterExample application.