Add sysprop to allow using async profiler for launch profiling

This commit is contained in:
embeddedt 2025-05-30 21:18:22 -04:00
parent 292b80cf37
commit 4802988bbb
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -37,7 +37,7 @@ public class SparkLaunchProfiler {
private static ExecutorService executor = Executors.newSingleThreadScheduledExecutor((new ThreadFactoryBuilder()).setNameFormat("spark-modernfix-async-worker").build());
private static final SparkPlatform platform = new SparkPlatform(new ModernFixSparkPlugin());
private static final boolean USE_JAVA_SAMPLER_FOR_LAUNCH = true; //Boolean.getBoolean("modernfix.profileLaunchWithJavaSampler");
private static final boolean USE_JAVA_SAMPLER_FOR_LAUNCH = !Boolean.getBoolean("modernfix.profileWithAsyncSampler");
public static void start(String key) {
if (!ongoingSamplers.containsKey(key)) {