| Author |
Message |
flipdoubt
Joined: 11 Aug 2009 Posts: 10
|
Posted: Tue Aug 11, 2009 3:34 pm Post subject: Profiling Debug vs. Release builds |
|
|
| Does profiling a Debug vs. Release build affect memory profiling results? |
|
| Back to top |
|
 |
AndrewH
Joined: 17 Aug 2006 Posts: 137
|
Posted: Wed Aug 12, 2009 11:40 am Post subject: |
|
|
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 |
|
 |
flipdoubt
Joined: 11 Aug 2009 Posts: 10
|
Posted: Wed Aug 12, 2009 5:42 pm Post subject: |
|
|
| Thanks. I am a new user liking this product a lot. About to ask another question ... |
|
| Back to top |
|
 |
|
|
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