locked
vsinstr /excludesmallfuncs RRS feed

  • Question

  • User1592111484 posted

    Hi,

    I am trying to use /EXCLUDESMALLFUNCS option of vsinstr. As per the msdn article it sould exclude my small funcs like getter and setter properties from my coverage report, but its not happening.

    Every getter setter property is included.

    Sample of my syntax:

    #vsinstr /EXCLUDESMALLFUNCS "MYDLL"

    Any help will be much appreciated.

     

    Thanks

    Varun

    Wednesday, March 20, 2013 9:42 AM

Answers

  • User-166373564 posted

    Hi varunpals

    exclude my small funcs like getter and setter properties from my coverage report,

    In Visual Studio 2008, add a feature to exclude small functions from instrumentation.  A small function is a function that has very few instructions and makes no function calls (i.e. it’s a leaf).  The idea behind this feature is that small functions are unlikely to be significant in the overall profile of your application, so we can skip collecting data for them altogether to avoid the overhead of otherwise doing so.  This feature is meant to exclude property getters and setters, but it will also exclude very simple functions that are typically inlined anyway.

    You could learn detailed information further about excluding small functions from instrumentation below,

    Excluding Small Functions From Instrumentation 

    hope it helps you,

    With regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 25, 2013 3:12 AM