Red Gate forums :: View topic - Profiling Debug vs. Release builds
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Profiling Debug vs. Release builds

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
flipdoubt



Joined: 11 Aug 2009
Posts: 10

PostPosted: Tue Aug 11, 2009 3:34 pm    Post subject: Profiling Debug vs. Release builds Reply with quote

Does profiling a Debug vs. Release build affect memory profiling results?
Back to top
View user's profile Send private message
AndrewH



Joined: 17 Aug 2006
Posts: 137

PostPosted: Wed Aug 12, 2009 11:40 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
flipdoubt



Joined: 11 Aug 2009
Posts: 10

PostPosted: Wed Aug 12, 2009 5:42 pm    Post subject: Reply with quote

Thanks. I am a new user liking this product a lot. About to ask another question ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group