MSRs with function 0 (frequency) return 1 result, which represents the frequency in megahertz. An MSR’s function (from GetMsrFunc) determines the amount and meaning of data returned from GetPowerData. The MSR ID is used to get data for a specific MSR with functions GetPowerData, GetMsrName, and GetMsrFunc.Ĭalling GetPowerData for each sampled MSR will provide you with the relevant data from that MSR. GetNumMsrs returns the number of sampled MSRs MSRs are given an ID from 0 to n-1, where n is the number returned by GetNumMsrs. Meta data on the sampled MSRs can be queried with GetNumMsrs, GetMsrName, and GetMsrFunc. The API supports sampling of specific Model Specific Registers (MSRs). The most common use of the Intel® Power Gadget API is to read samples with ReadSample. To begin you must initialize the library by calling IntelEnergyLibInitialize. –framework IntelPowerGadget in your link command. To link with the Intel® Power Gadget API you simply need to include The driver is installed to /System/Library/Extensions/EnergyDriver.kext, and the framework is installed to /Library/Frameworks/amework. These are included in the Intel® Power Gadget installer, or as a standalone API installer. To use the API you’ll need the Intel® Power Gadget for Mac* driver and framework. framework) that provides a C interface for reading current estimated processor power, current processor frequency, base frequency, thermal design power (TDP), current temperature, maximum temperature, timestamps, and elapsed time. The Intel® Power Gadget API is a framework (IntelPowerGadget. Intel® Power Gadget and the API are only supported on 2 nd generation and later Intel® Core processors, because previous processors do not support the necessary power Model Specific Registers (MSRs). Intel® Power Gadget is also available for Windows* and Linux*. Intel® Power Gadget also provides a C Application Programming Interface (API) for accessing this power and frequency data in your program. Intel® Power Gadget for Mac* is a GUI application that provides real-time data on processor frequency and estimated processor power, and can log frequency, power, energy, and temperature data over time. Using the Intel® Power Gadget API on Mac OS X*
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |