Domanda

What tool I can use for .Net/C# project to capture run-time dependencies between classes ? I found this question to be very useful but the suggested tools capture a static dependency graph. I simply want to see graph of instantiations of classes.

I'm using VS 2008 (but can install other version if needed).

UPD: My goal is this. I have huge old codebase. It has (for example) 500 classes but because DB-driven workflow has changed over the years only (for example) 100 class are used now. That's why static dependency analysis will be too overwhelming to digest.

È stato utile?

Soluzione

CLRProfiler can capture/display CallGraph: http://www.scribd.com/doc/3376247/CLRProfiler.

The file format is documented, so you can add your own analisys.

Altri suggerimenti

ANTS lets you visualize the call graph. Not precisely what you're looking for, but it might help. They have a 14 day trial and if you decide to buy it, it's well worth the money for profiling your .NET apps.

The .NET Memory Profiler lets you view instance graphs as well. A bit less spendy than ANTS and might do what you need to do.

Not a call graph but a call list but IntelliTrace in VS can tell you the call history. If you filter for calls to constructors you probably can get most of the way there.

Doxygen is a free tool that can also generate call graphs along with some basic documentation.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top