When you start sampling on your application, it collects information about the methods that are executing in the application flow and provides a summary as a result. Methods that are heavily executed during the execution cycle become part of the active function call tree known as Hot Path. Once the test is completed, it generates the timeline graph that you can use to look for the bottleneck.
In Visual Studio 2015 or greater, we can start the sampling process by going to the Analyze > Performance Profiler... menu. Make sure the configuration is set to release mode.
Once you run your application, it starts recording your application flow and identifies the Hot Path. ...