What are the challenges you face when working across database platforms? Take the survey

Profiling Debug vs. Release builds

flipdoubtflipdoubt Posts: 14
Does profiling a Debug vs. Release build affect memory profiling results?


  • Options
    The answer is 'it depends', but in general the differences will be minor enough not to be significant.

    It's possible a debug build will use extra debugging code which will allocate more objects, but usually this will be an insignificant amount of extra objects.

    It's also possible that optimisations in the code will mean that some objects can be garbage collected sooner in release builds, but once again in most cases the effect will be insignificant. In debug builds, local variables are kept around for as long as a method is running so they can be inspected by the debugger but in release builds they may be destroyed early.
    Andrew Hunter
    Software Developer
    Red Gate Software Ltd.
  • Options
    Thanks. I am a new user liking this product a lot. About to ask another question ...
Sign In or Register to comment.