-prof dtraceasm
Aleksey Shipilev
shade at redhat.com
Wed Jan 5 08:09:10 UTC 2022
On 1/5/22 5:19 AM, Henri Tremblay wrote:
> I'm trying -prof dtraceasm and sadly it works on Java 17, when
> copying hsdis-amd64.dylib at the right place but not when I do the same
> with Java 8 (putting it in jre/lib/server). Silly, I know.
My hsdis installation script does this to capture most locations:
cp ~/Install/libhsdis-amd64.so jre/lib/amd64/server/libhsdis-amd64.so
cp ~/Install/libhsdis-amd64.so lib/amd64/server/libhsdis-amd64.so
cp ~/Install/libhsdis-amd64.so lib/server/libhsdis-amd64.so
cp ~/Install/libhsdis-amd64.so lib/server/hsdis-amd64.so
You could also run strace to see where the OS is looking for hsdis:
$ strace -f java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly 2>&1 | grep hsdis
--
Thanks,
-Aleksey
More information about the jmh-dev
mailing list