Skip to content

Commit 4802988

Browse files
committed
Add sysprop to allow using async profiler for launch profiling
1 parent 292b80c commit 4802988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/embeddedt/modernfix/spark/SparkLaunchProfiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class SparkLaunchProfiler {
3737
private static ExecutorService executor = Executors.newSingleThreadScheduledExecutor((new ThreadFactoryBuilder()).setNameFormat("spark-modernfix-async-worker").build());
3838
private static final SparkPlatform platform = new SparkPlatform(new ModernFixSparkPlugin());
3939

40-
private static final boolean USE_JAVA_SAMPLER_FOR_LAUNCH = true; //Boolean.getBoolean("modernfix.profileLaunchWithJavaSampler");
40+
private static final boolean USE_JAVA_SAMPLER_FOR_LAUNCH = !Boolean.getBoolean("modernfix.profileWithAsyncSampler");
4141

4242
public static void start(String key) {
4343
if (!ongoingSamplers.containsKey(key)) {

0 commit comments

Comments
 (0)