Reseting statistics

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.

Performance Validator reset statistics icon toolbar
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.
    Performance Validator settings icon
    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.
    Performance Validator relaunch icon toolbar
  • 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.
    Performance Validator refresh all
  • Examining the StatisticsRelationsCall Tree tabs you can see the data collected.
    Performance Validator profiling statistics
  • Click the reset statistics icon to reset the statistics.
    Performance Validator reset statistics icon toolbar
  • Click the Refresh All icon on the toolbar.
    Performance Validator refresh all
  • Examining the StatisticsRelationsCall Tree tabs you can see the data collected has been reset.
    Performance Validator profiling statistics reset to zero
  • 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.

Fully functional, free for 30 days