Which profiling method is best for analyzing program behavior

I want to analyze the behavior of an application runtime application with software profiling. As far as I know, there are two main types of profiling method. The first is sample-based profiling, and the second is Instrumentation. Can someone please tell me which one should I use? I want to analyze the behavior of one ( java ) application, and not the behavior of one application with another. I don't care about performance issues like CPU cycle time, memory allocation, etc. Please suggest some tools that may help me.

I would really appreciate any help in this regard.

Thank.

+3
source share
1 answer

If you are interested in a control flow, sampling is not suitable (this is great for identifying performance bottlenecks). Only appliances can provide data for control flow.

The historical data at the recording method level for the application will lead to a huge amount of data if you do not carefully determine which classes should be tools.

JProfiler has a call trace representation that may be suitable for your purpose, also see this question .

Disclaimer: My company is developing JProfiler.

+1
source

All Articles