How to Get the Method/Function Call Trace for a Specific Run?

Posted by JackWM on Stack Overflow See other posts from Stack Overflow or by JackWM
Published on 2012-06-11T04:11:40Z Indexed on 2012/06/11 4:40 UTC
Read the original article Hit count: 145

Filed under:
|
|
|
|

Given a Java or JavaScript program, after its execution, print out a sequence of calls. The calls are in invocation order. E.g.

main()
{  A();
}

A()
{  B();
   C();
}

Then the call trace should be:

main -> A() -> B() -> C()

Is there any tool that can profile and output this kind of information? It seems this is common a need for debugging or performance tuning.

I noticed that some profilers can do this, but I prefer a simpler/easy-to-use one.

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about JavaScript