Author: Ong Heng Le
This tutorial demonstrates how to get an overview of your desktop application's performance using the profiler included in Visual Studio 2015.
To start a performance profiling session, follow this guide on Creating and running a performance session.
The profiler will generate the performance report after the profiling session, which you can explore on your own. Inclusive and exclusive data provides meaningful information about the execution time of each function.
The Visual Studio Profiler Team Blog has a good explanation on inclusive and exclusive data values.
You can identify the performance issues using the performance report. The Summary
view
shows these two useful information analyzed by the profiler.
To locate performance issues quickly, the Functions With Most Individual Work provides a list of functions which are usually candidates for optimization.
If you would like to trace down to the problem more carefully, the Hot Path is a good starting point. This will familiarize you about the most expensive execution path taken by your program.
You can follow this walkthrough to experience how to identify performance problems and optimize your code.
You have identified the problem, and may now want to optimize the code in the function body. But before that, here's a final tip: It is sometimes easier (and better) to optimize by reducing the number of calls to that function in its calling functions.