From 2818b9e3ac70e7bcfc10d0c2a3da1b88a96c783e Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 16 Mar 2021 11:04:59 +0000 Subject: Update async-profiler to 2.0 --- .../java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spark-common/src/main/java/me/lucko') diff --git a/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java b/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java index 3d53903..71ff425 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java +++ b/spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java @@ -112,6 +112,9 @@ public final class AsyncProfilerAccess { } public boolean isSupported() { + if (this.setupException != null) { + System.out.println("[spark] async-profiler engine is not supported on your system: " + this.setupException.getMessage()); + } return this.profiler != null; } } -- cgit