Recommand · May 22, 2021 0

How can I monitor cache misses on Mac OS X?

I have a c++ application wich runs in the Terminal for about 7 seconds, I’ve read that you can record cache misses with Apple’s Instruments application, unfortunately I didn’t find any documentation how you could start an application from with in Instruments and then monitor it, as I understand you have to open Instruments from Terminal > Services > (something from Instruments), I would have to do this in the first millisecond when the c++ application starts. The application is build using CMake with in CLion. Is there an alternative to record cache misses on MacOS or has some one got an idea how I can use Instruments?