Currently, the only perfasm profiler available on macOS is dtraceasm.
While it serves its purposes well, there are a few shortcomings: dtrace
requires superuser privileges and it can only sample by timer interrupts.
Xcode comes with a performance-analysis tool called Instruments [1] and it has a command-line tool, called xctrace [2].
xctrace allows profiling an app using both timer interrupts and PMI, and it does not require superuser privileges.
It would be nice to have a JMH profiler that uses xctrace on macOS.
[1] https://help.apple.com/instruments/mac/current/#/
[2] https://keith.github.io/xcode-man-pages/xctrace.1.html
While it serves its purposes well, there are a few shortcomings: dtrace
requires superuser privileges and it can only sample by timer interrupts.
Xcode comes with a performance-analysis tool called Instruments [1] and it has a command-line tool, called xctrace [2].
xctrace allows profiling an app using both timer interrupts and PMI, and it does not require superuser privileges.
It would be nice to have a JMH profiler that uses xctrace on macOS.
[1] https://help.apple.com/instruments/mac/current/#/
[2] https://keith.github.io/xcode-man-pages/xctrace.1.html
- relates to
-
CODETOOLS-7903722 JMH: Add xctrace-based perfnorm profiler for macOS
- Resolved