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

JMH: Add xctrace-based perfnorm profiler for macOS

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • jmh
    • generic
    • other

      xctrace command line tool [1] allows trace various aspects of program execution (like context switches, virtual memory ops) as well as sampling CPU PMU counters.

      On macOS, there's no replacement for the perf_events-based perfnorm profiler, but it could be built around xctrace tool.

      Unfortunately, xctrace does not provide any default settings to sample PMU counters, like it does for regular profiling, so some workarounds need to be applied in order to make the profiler work without any additional user inputs.

      [1] 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: