188080501 / jqcpumonitor Goto Github PK
View Code? Open in Web Editor NEW系统CPU使用率监控库
系统CPU使用率监控库
CPU使用率数值显示不正确
错误的显示:
CPU(Now): 0.00915903
CPU(Now): 0.0141549
CPU(Now): 0.00749376
CPU(Now): 0.0125
CPU(Now): 0.00582848
CPU(Now): 0.00999167
CPU(Now): 0.00999167
CPU
Intel(R) Xeon(R) CPU E5-2675 v3 @ 1.80GHz
基准速度: 1.80 GHz
插槽: 1
内核: 16
逻辑处理器: 32
虚拟化: 已启用
L1 缓存: 1.0 MB
L2 缓存: 4.0 MB
L3 缓存: 40.0 MB
利用率 3%
速度 1.86 GHz
正常运行时间 0:03:59:04
进程 244
线程 3801
句柄 110477
第一次调用的时候,有时运行是OK的,大部分不行,可能调用太快?不知道是不是使用方式有误
CPU Now 0%
CPU 5s 0%
demo cpp
QWidgetApp::QWidgetApp(QWidget* parent)
: QMainWindow(parent)
{
ui.setupUi(this);
JQCPUMonitor::initialize();
connect(ui.pushButton, &QPushButton::clicked, this, [] {
vv::info("CPU Now {}", JQCPUMonitor::cpuUsagePercentageDisplayString());
vv::info("CPU 5s {}", JQCPUMonitor::cpuUsagePercentageIn5SecondDisplayString());
});
}
你好,请问我编译的时候提示如下错误,jqcpumonitor.cpp:75: error: 'class QList<QPair<long long int, double> >' has no member named 'rbegin' 我使用的QT5,QList中没有rbegin,代码逻辑还没有完全看懂,有替换这个方法吗?
Originally posted by @HaiLongEmb in #2 (comment)
编译环境MSVC 2019 x64、MinGW-64bit
如题,望作者百忙之中予以修复:
编译输出如下:
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static void __cdecl JQCPUMonitor::initialize(void)" (?initialize@JQCPUMonitor@@SAXXZ),函数 main 中引用了该符号
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static double __cdecl JQCPUMonitor::cpuUsagePercentage(void)" (?cpuUsagePercentage@JQCPUMonitor@@Sanxz),函数 main 中引用了该符号
1>main.obj : error LNK2019: 无法解析的外部符号 "public: static double __cdecl JQCPUMonitor::cpuUsagePercentageInTime(__int64 const &)" (?cpuUsagePercentageInTime@JQCPUMonitor@@SANAEB_J@Z),函数 "public: static double __cdecl JQCPUMonitor::cpuUsagePercentageIn30Second(void)" (?cpuUsagePercentageIn30Second@JQCPUMonitor@@Sanxz) 中引用了该符号
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.