I am really new to PCM counters and I am planning on using it to get some basic hardware values for my application which is in C++
https://software.intel.com/en-us/articles/intel-performance-counter-monitor.I used this link to understand how the PCM API works. I have tried running pcm.x, I am not entirely sure how pcm will act when run it is embedded in this piece of code, how can I make it work for just one core. And what should my command-line argument be for running pcm-api, how do I link PCM and my c++ code to make use of the pcm classes and objects.
Any help is appreciated. Thanks and regards