How to: Exclude or include short functions from instrumentation
Applies to: Visual Studio Visual 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
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.
-or-
To include short functions in instrumentation, clear Exclude short functions from Instrumentation.
Click OK.