How can I see a log of every java class and method being called?

Does anyone know how I can see a log of each Java class and method that is being called (on a live instance of Jira), in a chronological log-like way?

Use case: I want to trigger some actions within the UI, and see which classes and methods I need to use to do similar things using scriptrunner (groovy scripts).

I have tried setting up remote jmx monitoring, and connected a tool called visualvm to it. I can see lots of info, but not in a chronological “this happened between 11:00 and 11:02” kind of way.

I’m not sure if I just need to enable debug logs for something, or if there are other JMX related tools I could use.

Any input would be very helpful.

I also asked this over on the regular jira community, but thought it might be more relevant over here on the developer side.

Thanks!