JMH: Add xctrace-based perfasm profiler for macOS

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None
    • jmh

      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

            Assignee:
            Filipp Zhinkin
            Reporter:
            Filipp Zhinkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: