@@ -233,29 +233,29 @@ public class ProfilerCommand extends AnnotatedCommand {
233
233
private static AsyncProfiler profiler = null ;
234
234
235
235
static {
236
- String profierSoPath = null ;
236
+ String profilerSoPath = null ;
237
237
if (OSUtils .isMac ()) {
238
238
// FAT_BINARY support both x86_64/arm64
239
- profierSoPath = "async-profiler/libasyncProfiler-mac.so" ;
239
+ profilerSoPath = "async-profiler/libasyncProfiler-mac.so" ;
240
240
}
241
241
if (OSUtils .isLinux ()) {
242
242
if (OSUtils .isX86_64 () && OSUtils .isMuslLibc ()) {
243
- profierSoPath = "async-profiler/libasyncProfiler-linux-musl-x64.so" ;
243
+ profilerSoPath = "async-profiler/libasyncProfiler-linux-musl-x64.so" ;
244
244
} else if (OSUtils .isX86_64 ()){
245
- profierSoPath = "async-profiler/libasyncProfiler-linux-x64.so" ;
245
+ profilerSoPath = "async-profiler/libasyncProfiler-linux-x64.so" ;
246
246
} else if (OSUtils .isArm64 () && OSUtils .isMuslLibc ()) {
247
- profierSoPath = "async-profiler/libasyncProfiler-linux-musl-arm64.so" ;
247
+ profilerSoPath = "async-profiler/libasyncProfiler-linux-musl-arm64.so" ;
248
248
} else if (OSUtils .isArm64 ()) {
249
- profierSoPath = "async-profiler/libasyncProfiler-linux-arm64.so" ;
249
+ profilerSoPath = "async-profiler/libasyncProfiler-linux-arm64.so" ;
250
250
}
251
251
}
252
252
253
- if (profierSoPath != null ) {
253
+ if (profilerSoPath != null ) {
254
254
CodeSource codeSource = ProfilerCommand .class .getProtectionDomain ().getCodeSource ();
255
255
if (codeSource != null ) {
256
256
try {
257
257
File bootJarPath = new File (codeSource .getLocation ().toURI ().getSchemeSpecificPart ());
258
- File soFile = new File (bootJarPath .getParentFile (), profierSoPath );
258
+ File soFile = new File (bootJarPath .getParentFile (), profilerSoPath );
259
259
if (soFile .exists ()) {
260
260
libPath = soFile .getAbsolutePath ();
261
261
}
0 commit comments