Memory leaks are my least favourite type of bug. To track them down requires not only a detailed knowledge of the entire codebase but also strong intuition (or a lot of luck). To make the process more fun I’ve written a patch for ruby 1.9.3 that lets you visualize portions of the memory graph. ObjectSpace.each_object Ruby already comes with ObjectSpace which contains a few methods for analyzing yo