Dave Griffiths
Dave Griffiths

Reputation: 2020

Tools to document/visualize call graph?

having recently joined a project with a vast amount of code to get to grips with, I would like to start documenting and visualizing some of the flows through the call graph to give me a better understanding of how everything fits together. This is what I would like to see in my ideal tool:

the interactive use of such a tool is key, I'm not looking for a Graphviz type solution because there would be too much clutter. The ability to form a view of a subset of the entire graph would be very handy (maybe with the unimportant clutter greyed out). Don't need automatic generation from source code, happy to enter it manually.

Almost like a mind-map.

Does that make sense? If you are not aware of such a tool, do you also think it would be useful? (Just in case I decide to go and scratch that itch one day!)

Upvotes: 9

Views: 4857

Answers (2)

Patrick from NDepend team
Patrick from NDepend team

Reputation: 13842

To develop further the answer of Willem van Rumpt, with the tool NDepend, you can indeed obtain a call graph like this one. Disclaimer: I am one of the developers of the tool

Call graph

For that you just need to export to the graph the result of a CQLinq code query:

code query exporting

Such a code query, can be generated actually for any method, thanks to the right-click menu illustrated below.

Select methods that use me directly or indirectly

Upvotes: 2

Willem van Rumpt
Willem van Rumpt

Reputation: 6570

You don't mention the environment you're using, but if it's .NET, NDepend might come in handy.

Upvotes: 2

Related Questions