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 --- spark-common/build.gradle | 2 +- .../common/sampler/async/AsyncProfilerAccess.java | 3 +++ .../src/main/resources/libasyncProfiler.so | Bin 309494 -> 314098 bytes 3 files changed, 4 insertions(+), 1 deletion(-) 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 index 421a9be..4153f52 100755 Binary files a/spark-common/src/main/resources/libasyncProfiler.so and b/spark-common/src/main/resources/libasyncProfiler.so differ -- cgit