| 71 | |
| 72 | = Profiling your ISSM test = |
| 73 | |
| 74 | After setting up the target, we can finally start to profile ISSM. To do this, just hit the record button and let Instruments run. The record button is just a red circle at the top by the pause button. In order to get a better idea of how ISSM is performing, it might be necessary to do a few "runs." This just means recording a new run once the previous run has finished. Recording multiple runs allows Instruments and ISSM to overcome any initial setup operations that might falsely inflate the time, compared to a normal scenario. Below is an image showing what happens when we create multiple runs. |
| 75 | |
| 76 | We can also view each run by selecting the drop down arrow on the left of the "CPU Usage" label. If a run is unsuccessful or was accidentally paused before completion, we can delete that specific run by selecting it and going to `Instrument -> Delete Run #` from the main menu. |
| 77 | |
| 78 | [[Image(http://i.imgur.com/K0p992f.jpg)]] |
| 79 | |
| 80 | == Obtaining Useful Information from a Run == |
| 81 | |
| 82 | As you might have noticed, there is nothing useful from the default view. In order to see what is happening, we need to change a few settings. To start, we click the gear icon located in the middle right hand side of the screen (next to an icon that looks like an 'E'). This shows us the display settings. Under the "Call Tree" options, we '''select''': `Separate by Thread`, `Invert Call Tree`, `Hide System Libraries`, and `Flatten Recursion`. Make sure that these are the '''only''' selected options. |
| 83 | |
| 84 | This will clean up our view of the call tree and will only show relevant functions ordered by time (from highest to lowest). The image below shows all of the settings needed to obtain accurate information about what functions within ISSM take the most time. The first red rectangle highlights where the display settings icon is while the second red rectangle shows where the "Call Tree" options that need to be changed are. |
| 85 | |
| 86 | [[Image(http://i.imgur.com/j8kCtok.jpg)]] |
| 87 | |