DtkDevice
DTK library for device.
|
CPU设备信息. 更多...
#include <dcpudevice.h>
类 | |
struct | DCpuStat |
CPU的状态信息 更多... | |
struct | DCpuUsage |
CPU的利用率信息 更多... | |
Public 成员函数 | |
DCpuDevice (QObject *parent=nullptr) | |
int | physicalCount () |
获取所有物理CPU个数. 更多... | |
int | coreCount (int physicalID) |
获取指定CPU的核心个数. 更多... | |
int | threadCount (int physicalID, int coreID) |
获取指定CPU和物理核的线程个数. 更多... | |
int | physicalID (int processorID) |
获取指定线程ID的CPU的ID. 更多... | |
int | coreID (int processorID) |
获取指定线程ID的物理核ID. 更多... | |
QString | architecture (int physicalID) |
获取指定CPU的架构. 更多... | |
QString | vendor (int physicalID) |
获取指定CPU的厂商. 更多... | |
QString | model (int physicalID) |
获取指定CPU的型号. 更多... | |
QString | minFreq (int processorID) |
获取指定线程ID的最小频率(kHz、MHz、GHz). 更多... | |
QString | maxFreq (int processorID) |
获取指定线程ID的最大频率(kHz、MHz、GHz). 更多... | |
QString | cache (int processorID, QString type) |
获取指定线程ID和缓存类型的缓存大小. 更多... | |
QString | flags (int processorID) |
获取指定线程ID的特性. 更多... | |
QString | stepping (int processorID) |
获取指定线程ID的步进. 更多... | |
QString | family (int processorID) |
获取指定线程ID的家族. 更多... | |
QString | bogoMIPS (int processorID) |
获取指定线程ID的运算速度. 更多... | |
QString | temperature (int physicalID) |
获取指定CPU的温度. 更多... | |
QString | currentFreq (int processorID) |
获取指定线程ID的当前频率(kHz、MHz、GHz). 更多... | |
DCpuStat | stat () |
获取所有CPU的状态. 更多... | |
DCpuUsage | usage () |
获取所有CPU的资源占用信息. 更多... | |
DCpuStat | stat (int processorID) |
获取指定线程ID的状态. 更多... | |
DCpuUsage | usage (int processorID) |
获取指定线程ID的资源占用信息. 更多... | |
CPU设备信息.
QString Dtk::Device::DCpuDevice::architecture | ( | int | physicalID | ) |
获取指定CPU的架构.
[in] | physicalID | 指定CPU的ID. |
QString Dtk::Device::DCpuDevice::bogoMIPS | ( | int | processorID | ) |
获取指定线程ID的运算速度.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::cache | ( | int | processorID, |
QString | type | ||
) |
获取指定线程ID和缓存类型的缓存大小.
[in] | processorID | 指定线程ID. |
[in] | type | 缓存类型,l1d L1数据缓存,l1i L1指令缓存,l2 L2缓存,l3 L3缓存. |
int Dtk::Device::DCpuDevice::coreCount | ( | int | physicalID | ) |
获取指定CPU的核心个数.
[in] | physicalID | 指定CPU的ID. |
int Dtk::Device::DCpuDevice::coreID | ( | int | processorID | ) |
获取指定线程ID的物理核ID.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::currentFreq | ( | int | processorID | ) |
获取指定线程ID的当前频率(kHz、MHz、GHz).
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::family | ( | int | processorID | ) |
获取指定线程ID的家族.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::flags | ( | int | processorID | ) |
获取指定线程ID的特性.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::maxFreq | ( | int | processorID | ) |
获取指定线程ID的最大频率(kHz、MHz、GHz).
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::minFreq | ( | int | processorID | ) |
获取指定线程ID的最小频率(kHz、MHz、GHz).
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::model | ( | int | physicalID | ) |
获取指定CPU的型号.
[in] | physicalID | 指定CPU的ID. |
int Dtk::Device::DCpuDevice::physicalCount | ( | ) |
获取所有物理CPU个数.
int Dtk::Device::DCpuDevice::physicalID | ( | int | processorID | ) |
获取指定线程ID的CPU的ID.
[in] | processorID | 指定线程ID. |
DCpuStat Dtk::Device::DCpuDevice::stat | ( | ) |
获取所有CPU的状态.
DCpuStat Dtk::Device::DCpuDevice::stat | ( | int | processorID | ) |
获取指定线程ID的状态.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::stepping | ( | int | processorID | ) |
获取指定线程ID的步进.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::temperature | ( | int | physicalID | ) |
获取指定CPU的温度.
[in] | physicalID | 指定CPU的ID. |
int Dtk::Device::DCpuDevice::threadCount | ( | int | physicalID, |
int | coreID | ||
) |
获取指定CPU和物理核的线程个数.
[in] | physicalID | 指定CPU的ID. |
[in] | coreID | 指定物理核ID. |
DCpuStat Dtk::Device::DCpuDevice::usage | ( | ) |
获取所有CPU的资源占用信息.
DCpuStat Dtk::Device::DCpuDevice::usage | ( | int | processorID | ) |
获取指定线程ID的资源占用信息.
[in] | processorID | 指定线程ID. |
QString Dtk::Device::DCpuDevice::vendor | ( | int | physicalID | ) |
获取指定CPU的厂商.
[in] | physicalID | 指定CPU的ID. |