飞行记录器是基于采样的还是基于仪器的分析器?

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

尽管查看了飞行记录器文档,我还是找不到此信息?我基本上是想记录我程序的所有执行情况,甚至不会因为采样而丢失一个小函数。

来自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.

(强调已添加。)

一般来说,检测有点贵,所以如果您看到一个工具承诺非常 low/no 开销,您可以非常确定它是采样。