From 2818b9e3ac70e7bcfc10d0c2a3da1b88a96c783e Mon Sep 17 00:00:00 2001
From: Luck <git@lucko.me>
Date: Tue, 16 Mar 2021 11:04:59 +0000
Subject: Update async-profiler to 2.0

---
 .../common/sampler/async/AsyncProfilerAccess.java  |   3 +++
 .../src/main/resources/libasyncProfiler.so         | Bin 309494 -> 314098 bytes
 2 files changed, 3 insertions(+)

(limited to 'spark-common/src')

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