Let’s do this scientifically

For a long while, I’ve been meaning to spend some time investigating how much optimisation the .NET jit does to your program, and in particular how it trades off the debugging experience against the performance of the running application. I was recently given some time at work to look into improving the debugging experience when people use the pdb files generated by Reflector Pro.

There are various blog posts by Microsoft people spread across the internet that give snippets of information, but it was really nice to get a couple of days to run some experiments on a .NET application which was built in retail mode to see what you need to do to turn off enough optimisations to see the values of local variables, get a faithful stacktrace and be allowed to set the next statement as you can in a debug build with a debugger attached. What I found out I wrote up here.

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s