diff options
-rw-r--r-- | spark-common/build.gradle | 2 | ||||
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/sampler/async/AsyncProfilerAccess.java | 3 | ||||
-rwxr-xr-x | spark-common/src/main/resources/libasyncProfiler.so | bin | 309494 -> 314098 bytes |
3 files changed, 4 insertions, 1 deletions
diff --git a/spark-common/build.gradle b/spark-common/build.gradle index 8b64449..7a69e86 100644 --- a/spark-common/build.gradle +++ b/spark-common/build.gradle @@ -3,7 +3,7 @@ plugins { } dependencies { - compile 'com.github.jvm-profiling-tools:async-profiler:v2.0-rc' + compile 'com.github.jvm-profiling-tools:async-profiler:v2.0' compile 'org.ow2.asm:asm:7.1' compile 'com.google.protobuf:protobuf-java:3.14.0' compile 'com.squareup.okhttp3:okhttp:3.14.1' 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; } } diff --git a/spark-common/src/main/resources/libasyncProfiler.so b/spark-common/src/main/resources/libasyncProfiler.so Binary files differindex 421a9be..4153f52 100755 --- a/spark-common/src/main/resources/libasyncProfiler.so +++ b/spark-common/src/main/resources/libasyncProfiler.so |