aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-03-16 11:04:59 +0000
committerLuck <git@lucko.me>2021-03-16 11:04:59 +0000
commit2818b9e3ac70e7bcfc10d0c2a3da1b88a96c783e (patch)
treecb6e6bef65d369139228e71d66f3d49e317af509 /spark-common/src/main/java/me
parentbf46c71550e7adb970be3a18b2cc2d8b06e02a4c (diff)
downloadspark-2818b9e3ac70e7bcfc10d0c2a3da1b88a96c783e.tar.gz
spark-2818b9e3ac70e7bcfc10d0c2a3da1b88a96c783e.tar.bz2
spark-2818b9e3ac70e7bcfc10d0c2a3da1b88a96c783e.zip
Update async-profiler to 2.0
Diffstat (limited to 'spark-common/src/main/java/me')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java3
1 files changed, 3 insertions, 0 deletions
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;
}
}