Support profiler command on arm64. (#1259)

This commit is contained in:
fornaix
2020-10-19 22:36:53 +08:00
committed by GitHub
parent ef2b8e57c9
commit 6be0cc596b
3 changed files with 8 additions and 2 deletions
@@ -125,8 +125,10 @@ public class ProfilerCommand extends AnnotatedCommand {
}
if (OSUtils.isLinux()) {
profierSoPath = "async-profiler/libasyncProfiler-linux-x64.so";
if (OSUtils.isArm()) {
if (OSUtils.isArm32()) {
profierSoPath = "async-profiler/libasyncProfiler-linux-arm.so";
} else if (OSUtils.isArm64()) {
profierSoPath = "async-profiler/libasyncProfiler-linux-aarch64.so";
}
}