Is flight recorder a sampling based or an instrumentation based profiler?

588 views Asked by At

I couldn't find this info despite having looked at flight recorder documentation? I was basically looking to record all of the execution of my program and not even lose a single small function because of sampling.

1

There are 1 answers

4
yshavit On BEST ANSWER

From the docs:

JFR continuously saves large amounts of data about the running system. This profiling information includes thread samples (which show where the program spends its time), lock profiles, and garbage collection details.

(Emphasis added.)

Generally speaking, instrumentation is somewhat expensive, so if you see a tool that promises very low/no overhead, you can be pretty sure it's sampling.