How to: Exclude or Include Short Functions from Instrumentation
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here
By default, the Profiling tools exclude small functions from instrumentation. Small functions are short functions that do not make any function calls. Excluding these small functions provides for less instrumentation overhead, and therefore improved instrumentation speed. The exclusion of small functions also reduces the performance profiling data file (.vsp) size and the time that is required for analysis. If small functions are excluded, the time that is spent in the small functions counts against the exclusive and inclusive time of their parent functions. Small functions can be excluded or included in instrumentation, as described in the following procedure.
To exclude or include short functions from instrumentation
In Performance Explorer, select Performance Session and then right-click and select Properties.
The Property Pages dialog box is displayed.
In the Property Pages, click the Instrumentation properties.
To exclude short functions from instrumentation, select Exclude short functions from Instrumentation. This is the default setting.
To include short functions in instrumentation, clear Exclude short functions from Instrumentation.