C# Call Graph Generation Tool

2019-01-16 16:52发布

I just got a heaping pile of (mostly undocumented) C# code and I'd like to visualize it's structure before I dive in and start refactoring. I've done this in the past (in other languages) with tools that generate call graphs.

Can you recommend a good tool for facilitating the discovery of structure in C#?

UPDATE

In addition to the tools mentioned here I've seen (through the tubes) people say that .NET Reflector and CLR Profiler have this functionality. Any experience with these?

8条回答
我只想做你的唯一
2楼-- · 2019-01-16 17:00

It's bit late, but http://sequenceviz.codeplex.com/ is an awesome tool that shows the caller graph/Sequence diagram. The diagrams are generated by reverse engineering .NET Assemblies.

查看更多
Rolldiameter
3楼-- · 2019-01-16 17:01

Visual Studio 2010.

Plus, on a method-by-method basis - Reflector (Analyzer (Ctrl+R); "Depends On" and "Used By")

查看更多
闹够了就滚
4楼-- · 2019-01-16 17:08

NDepend is pretty good at this. Additionally Visual Studio 2008 Team System has a bunch of features that allow you to keep track of cyclomatic complexity but its much more basic than NDepend. (Run code analysis)

查看更多
欢心
5楼-- · 2019-01-16 17:09

I've used doxygen to some success. It's a little confusing, but free and it works.

查看更多
成全新的幸福
6楼-- · 2019-01-16 17:10

Concerning NDepend, it can produce some usable call graph like for example (image full size here)

alt text

Find more explanations about NDepend call graph here.

查看更多
聊天终结者
7楼-- · 2019-01-16 17:12

SequenceViz and DependencyStructureMatrix for Reflector might help you out: http://www.codeplex.com/reflectoraddins

查看更多
登录 后发表回答