0

I just learned the concept of CPI and IPC and I am curious how to check them on Mac OS. I search it online but I cannot find an answer. Is there a way to do that?

Thank you in advance!

Major
  • 159
  • 1
  • 7
  • Maybe a duplicate of [Performance Counters API in OS X](//stackoverflow.com/q/39306968), but that doesn't have a useful answer. – Peter Cordes Oct 03 '19 at 16:51
  • Possible duplicate of [Record values of Performance Monitor Counters (PM events) on OS X without Instruments](https://stackoverflow.com/questions/32536551/record-values-of-performance-monitor-counters-pm-events-on-os-x-without-instru) – Peter Cordes Oct 03 '19 at 16:51
  • 1
    That question points out that XCode can profile with hardware performance counters. (Which can count cycles and instructions, and presumably do the math for you to show you IPC. And probably more usefully, uops/cycle as well to see how close to the 4/clock front-end issue bandwidth bottleneck (on Intel CPUs until IceLake) you are.) – Peter Cordes Oct 03 '19 at 16:54
  • @PeterCordes Thank you for the information, I will try the XCode approach. – Major Oct 03 '19 at 20:00

0 Answers0