Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903696

JMH: Add xctrace-based perfasm profiler for macOS

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • 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

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

              Created:
              Updated:
              Resolved: