Inspect the current profiling configuration settings and make sure that for all GA feature there is one common configuration option which would pick the best possible implementation given the current environment.
An example would be to have profiling.liveheap.enabled to selectively enable either JFR OldObjectSample event or ddprof liveheap profiler, depending on the JVM version.
The old config options need to be kept for backward compatibility and for the possibility of overrides. Eg. if the user sets profiling.ddprof.liveheap.enabled=false together with profiling.liveheap.enabled=true it should mean that they want to use JFR even though the ddprof liveheap profiler is available.
Cross-references
Inspect the current profiling configuration settings and make sure that for all GA feature there is one common configuration option which would pick the best possible implementation given the current environment.
An example would be to have
profiling.liveheap.enabledto selectively enable either JFR OldObjectSample event or ddprof liveheap profiler, depending on the JVM version.The old config options need to be kept for backward compatibility and for the possibility of overrides. Eg. if the user sets
profiling.ddprof.liveheap.enabled=falsetogether withprofiling.liveheap.enabled=trueit should mean that they want to use JFR even though the ddprof liveheap profiler is available.Cross-references
PROF-10633