Analysing an application for performance problems can be a time-consuming process. Sometimes you make a mistake in your analysis and need to start again. With most profilers, this means closing your application and starting the whole process. Performance Validator provides an option to reset the gathered statistics so that you don’t need to start again.

The reset statistics button on the toolbar (shown above) resets all function and line timing statistics to zero so that you can restart timing the software under test.
- Click on the settings icon on the toolbar.

The settings dialog is displayed. On the Performance tab, choose the Sampling option – this ensures Performance Validator doesn’t spend time instrumenting your application – allowing for a rapid attachment to the application to enable you to get a quick view of the callstack when your application is under load. Click OK to accept the new settings.
- Launch the sample application. Click on the relaunch icon on the toolbar to relaunch the most recently launched application.

- Using the sample application, select the Sort menu and choose Quick Sort.
- Using the sample application, select the Sort menu and choose Quick Sort a second time.
- This means that your test results now have the time for two runs of Quick Sort. This is not what you wanted.
- Click the Refresh All icon on the toolbar.

- Examining the Statistics, Relations, Call Tree tabs you can see the data collected.

- Click the reset statistics icon to reset the statistics.

- Click the Refresh All icon on the toolbar.

- Examining the Statistics, Relations, Call Tree tabs you can see the data collected has been reset.

- The statistics have been reset, we need to re-time the Quick Sort. Using the sample application, select the Sort menu and choose Quick Sort.
- Using the sample application, select the Sort menu and choose Comb Sort.
- Using the sample application, select the Sort menu and choose Heap Sort.
- Using the sample application, select the Sort menu and choose Merge Sort.
- Using the sample application, select the Sort menu and choose Bubble Sort.
- Close nativeExample.exe using the File menu Exit command. The application closes. Performance Validator processes any remaining data and displays the final results.