2

I want to profile a fairly large java program dynamically. More specifically, I want to generate a dynamic call graph for one run of the program. Is there a commandline profiler to generate such graph.

Thank you.

2 Answers 2

3

I think you should try btrace, which is a diagnose tool for Java programs. You can get enough information from the wiki page, and a lot of examples too.

Sign up to request clarification or add additional context in comments.

Comments

2

JProfiler can generate call graphs:

enter image description here

You can profile without using the JProfiler GUI, either by defining triggers or using the jpcontroller command line utility. Afterwards, you can open a snapshot in the JProfiler GUI to look at the call graph.

Disclaimer: My company develops JProfiler.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.