diff --git a/src/cpucounters.cpp b/src/cpucounters.cpp index 5e98cff4..0e7e36fa 100644 --- a/src/cpucounters.cpp +++ b/src/cpucounters.cpp @@ -1620,7 +1620,12 @@ void PCM::printSystemTopology() const bool PCM::initMSR() { -#ifndef __APPLE__ +#ifdef __APPLE__ + for (size_t i=0; i < MSR.size(); ++i) + { + systemTopology->addMSRHandleToOSThread(MSR[i], (uint32)i); + } +#else try { for (int i = 0; i < (int)num_cores; ++i)