CPU Performance Plotting
-
I don't think so. Have a look at the "GetSystemTimes":http://goo.gl/SM13I1 function!
And keep in mind that:
@lpUserTime_Delta = lpUserTime[n] - lpUserTime[n-1];
lpKernelTime_Delta = lpKernelTime[n] - lpKernelTime[n-1];
lpIdleTime_Delta = lpIdleTime[n] = lpIdleTime[n-1];totalTime = lpUserTime_Delta + lpKernelTime_Delta;
busyTime = totalTime - lpIdleTime_Delta;cpuUsage = (double) busyTime / totalTime;@
-
I would recommend "QCustomPlot":http://www.qcustomplot.com/.
-
I would agree with that recommendation. However, it is to mention, that QCustomPlot does not offer the desired plot per se. It just offers a general (and very convenient) Qt way to plot arbitrary data and measurements. The data (in this case CPU load) has to be provided though.