Question

I need to do some memory profiling of a .NET Framework application. Should I use a debug or a release build?

Was it helpful?

Solution

A release build, built with debug symbols.

That way there's no debug build overhead (like extra memory added after arrays for overrun detection), but you still have the names needed to associate addresses with variables.

OTHER TIPS

You should profile the builds that are causing the problems. I'm assuming you are giving your users a Release build and so that's the one you should profile.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top