One of the first questions people seem to ask when they see the Dependency Graph features of Visual Studio 2010 is whether it can also be used to visualized runtime object graphs.
In this Video (WMV, or MP4) I will show you how that can be done using the SOS debugger extensions and specifically the GCRoot command. I’ve used this technique several times to help figure out some really complex memory leak bugs and so I’m confident you will find this to be a useful tool to add to your toolbox of tricks.
The code for the GCRootToDGML tool is available to download so you can try this out yourself, it should work with any recent version of Visual Studio 2010.
Adding links some excellent work done by others on this subject below: