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:
After a number of seconds have passed, your trace information will be displayed, and this will contain information relating to the overall CPU, memory, disk, and network activity used by your application as shown in the following screenshot:
You can choose to stop the application from profiling by clicking on the Stop button, since the Instruments application has already done its full analysis.
In this recipe, we learned how to use the Activity Monitor Instruments component which enables us to check the virtual memory of the OS that can potentially cause the computer system to perform sluggishly. The previous screenshot displays information relating to the overall load which the system is currently undergoing, as well as the user applications performance and the total virtual memory that is currently being allocated to cache these operations.