Call Tree view - sampling data

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Call Tree view displays the function execution paths that were traversed in the profiled application.

Note

Enhanced security features in Windows 8 and Windows Server 2012 required significant changes in the way the Visual Studio profiler collects data on these platforms. UWP apps also require new collection techniques. See Performance Tools on Windows 8 and Windows Server 2012 applications.

The root of the tree is the entry point into the application or the component. Each function node lists all the functions that it called and performance data about those function calls.

The values in the Call Tree view are for the function instances that were called by the parent function in the call tree. Percentage values are calculated by comparing the function instance value to the total number of samples in the profiling run.

Highlight the execution hot path

The Call Tree view can expand and highlight the execution path of the process or function that was sampled most frequently. To display the most active path, right-click the process or function and then click Expand Hot Path.

Set the call tree root node

Each process in the profiling run is displayed as a root node. To set the start node of the Call Tree view, right-click the node that you want to set as the start node and select Set Root.

When you set the root node, you eliminate all other entries from the view except the subtree of the selected node. To reset the root node back to the original node, right-click in the Call Tree View window and select Reset Root.

Column Description
Process ID The process ID (PID) of the profiling run.
Process Name The name of the process.
Module Name The name of the module that contains the function.
Module Path The path of the module that contains the function.
Source File The source file that contains the definition for this function.
Function Name The fully qualified name of the function.
Function Line Number The line number of the start of this function in the source file.
Function Address The address of the function.
Level The depth of this function in the call tree. Only in VSPerfReport command-line reports.
Exclusive Samples The number of samples that were collected in this function when it was called by the parent function in the call tree. This number does not include samples that were collected in functions that were called by the function.
Exclusive Samples % The percentage of all samples in the profiling run that were exclusive samples of this function when it was called by the parent function in the call tree.
Inclusive Samples The number of samples that were collected in this function when it was called by the parent function in the call tree. This number includes samples that were collected in functions that were called by the function.
Inclusive Samples % The percentage of all samples in the profiling run that were inclusive samples of this function when it was called by the parent function in the call tree.

See also