inlining?

Does version 3 support JIT compiler inlining in Detailed Mode or is inlining disabled?

I know that line level instrumentation will prohibit inlining of some methods because it pushes the IL over the 32 byte threshold, but are simple methods (like property accessors) inlined?

Comments

  • Hi,

    In detailed mode, we allow inlining of anything that is not being profiled - so, for example, if you exclude the system methods, then they may inlined even in detailed mode. The theory behind this is that we don't let inlining make any changes that you can detect (other than speed of course) in detailed mode.

    In fast mode, if you're profile with an optimised build (debug builds aren't optimised by default), then anything is eligible for inlining.

    I hope that helps,
    Rob
    Robert Chipperfield
    Red Gate
Sign In or Register to comment.