views:

52

answers:

2

I want to write some code( or if there is tool that can give thsi info ) that can return chian of methods executed( or called) - giving a starting point ( a fully qualified method name ) as input.

I am hoping this can be done via querying metadata on a dotnet assembly.

thanks for any pointers in advance!

update #1: http://sequenceviz.codeplex.com/ gives ability to generate forward chain of sequence diagram. I am looking into being able to reverse lookup the same info. Like given a method if we can generate reverse graph for all places from where it can be called.

A: 

use StackTrace class to get this info. StackTrace information will be most informative with Debug build configurations.

Arseny
+1  A: 

There was similar Question here

Which suggests several option like .Net Reflector, SequenceWiz, nProf. One of these might work for you.

Bhuvan
I checked SequenceWix it gives me forward chaining. from a method.Is there a way to also check the same backwords ( i.e reverse lookup the chain from a method ) ?
dotnetcoder