Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vs2010. Call Hierarchy. Is there a way to generate call hierarchy for all methods at once?

I've found View Call Hierarchy helpful in making sense of new code. Can it be automated ?Now, I'm clicking on every method and hitting (Ctrl+K,Ctr+T). Is it possible to generate Call Hierarchy for a class? Thanks in advance.

like image 675
Casual Coder Avatar asked Sep 23 '10 10:09

Casual Coder


1 Answers

There are some fantastic 3rd party applications out there. nDepend is a sophisticated tool that maps out your assemblies and generates all sorts of metrics on your code. It also does some interesting things like comparing your assemblies with previous builds to determine when/if you break public APIs.

Here are explanations about how to generate call hierarchy for all methods at once with NDepend.

If you're more interested in a look at the call hierarchy during runtime, so far I've been a really big fan of ANTS Performance Profiler. You can profile your code for a span of time, then drill into code that was running at a certain point in time, and then generate an exportable call graph which displays the percentage of time spent in each method. It's awesome.

like image 51
Jason Avatar answered Nov 15 '22 08:11

Jason