2006/07/07

MallocDebug.app

Just after I released DrEvil I found this nifty little program included in XCode called MallocDebug. I thought, hey, let's take it for a ride on XMMS2. Man what a ride. In under 20 minutes I found four memory leaks that has been eluding me for a long time. I just love Apple when they do things as right as this. The program seems to work with libc in OSX to track allocations and then show it to you in a not-so-intuitive GUI, but when you finaly learn how to use it, it's great. You can sort the leaks on counts or used memory which makes it easy to understand if it's really a leak or just a one time problem. To bad I discovered it 20 minutes after a release :-)

No comments: