Closed thangavel-projects closed 2 years ago
It seems you do not have perf installed.
! ~ perf --version Di 14 Dez 2021 14:36:54 CET
perf version 5.4.151
I think macOS does not have perf
, but DTrace
.
Perf on Linux only
$ java -jar target/benchmarks.jar JMHSample_35.*Atomic -prof perf -f 1 (Linux)
$ java -jar target/benchmarks.jar JMHSample_35.*Atomic -prof perfnorm -f 3 (Linux)
$ java -jar target/benchmarks.jar JMHSample_35.*Atomic -prof perfasm -f 1 (Linux)
DTrace on macOS
$ java -jar target/benchmarks.jar JMHSample_35.*Atomic -prof dtraceasm -f 1 (Mac OS X)
Got it, thank you very much for your response. Cheers.
Thank you very much for writing awesome tool, I face issue with perfnorm profilers.
I use JDK16: java version "16.0.2" 2021-07-20 Java(TM) SE Runtime Environment (build 16.0.2+7-67) Java HotSpot(TM) 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing) OS: Mac
When i use the
profilers = ['perfnorm']
I get the error. Please find the below error,`➜ Java16Practice gradle jmh
FAILURE: Build failed with an exception.
`
It works fine for 'cl' 'stack' but NOT for
perf, perfnorm, hs_gc, hs_rt, hs_thr
and few othersCould you please help me with that? Thanks in advance.