7#include "dtkdevice_global.h"
11DDEVICE_BEGIN_NAMESPACE
13class DCpuDevicePrivate;
14class LIBDTKDEVICESHARED_EXPORT
DCpuDevice :
public QObject
27 quint64 guestNice {0};
35 explicit DCpuDevice(QObject *parent =
nullptr);
48 QString
cache(
int processorID, QString type);
62 QScopedPointer<DCpuDevicePrivate> d_ptr;
CPU设备信息.
Definition: dcpudevice.h:15
DCpuStat stat(int processorID)
获取指定线程ID的状态.
QString flags(int processorID)
获取指定线程ID的特性.
QString stepping(int processorID)
获取指定线程ID的步进.
int coreID(int processorID)
获取指定线程ID的物理核ID.
QString model(int physicalID)
获取指定CPU的型号.
DCpuUsage usage(int processorID)
获取指定线程ID的资源占用信息.
DCpuUsage usage()
获取所有CPU的资源占用信息.
int physicalID(int processorID)
获取指定线程ID的CPU的ID.
QString minFreq(int processorID)
获取指定线程ID的最小频率(kHz、MHz、GHz).
int physicalCount()
获取所有物理CPU个数.
QString maxFreq(int processorID)
获取指定线程ID的最大频率(kHz、MHz、GHz).
int threadCount(int physicalID, int coreID)
获取指定CPU和物理核的线程个数.
QString currentFreq(int processorID)
获取指定线程ID的当前频率(kHz、MHz、GHz).
QString temperature(int physicalID)
获取指定CPU的温度.
QString bogoMIPS(int processorID)
获取指定线程ID的运算速度.
QString family(int processorID)
获取指定线程ID的家族.
QString architecture(int physicalID)
获取指定CPU的架构.
QString vendor(int physicalID)
获取指定CPU的厂商.
int coreCount(int physicalID)
获取指定CPU的核心个数.
DCpuStat stat()
获取所有CPU的状态.
QString cache(int processorID, QString type)
获取指定线程ID和缓存类型的缓存大小.
CPU的状态信息
Definition: dcpudevice.h:17
CPU的利用率信息
Definition: dcpudevice.h:30