Visual call graph?

Mar 12, 2008 at 5:31 PM
I would like to know if there is a way to generate a visual method call graph using Reflector or some add-on; this would be really helpful for understanding a particular code base I have. Basically, I want to have what is provided through the treeview (after selecting "Analyze" on a method), but through a nice, printable graphic so I can visualize who is calling who. Does such an add-on exist?

If one doesn't exist I'm going to write it, because I think it would be highly useful.

Thanks,
Ben

P.S. Please note, I'm NOT interested in inheritance maps, etc. which is what most of the visual add-ons seem to show; I'm only interested in method call chains.
Mar 27, 2008 at 12:06 AM
I started doing this here 1 and the follow up 2 but stopped as it is sometime not possible to guarantee a correct tree for virtual methods. See Jonathan's comment on the first post. I was trying to write it as separate application using Cecil so it may be possible to visualize what "Analyze" is doing.

1 http://weblogs.asp.net/nleghari/archive/2007/04/08/methodviz-see-what-your-methods-are-doing.aspx
2 http://weblogs.asp.net/nleghari/archive/2007/04/08/methodviz-0-2.aspx

Did you try using SequenceViz which is not exactly what you want but it can generate sequence diagrams for methods.
http://www.codeplex.com/sequenceviz (Standalone version)
http://www.codeplex.com/sequenceviz/Wiki/View.aspx?title=ReflectorPlugin&referringTitle=Home (Reflector Plugin)

Nauman