CPU Performance Plotting
Is there any in-bulit Qt Widget classes to plot CPU Performance as plotted in Windows Task Manager.
Is there any examples available?
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;@
Thanks for reply.
Definitely,it will help logically.
But to plot CPU performance on x-y graph ,can you suggest some Qt Classes or any useful logic
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.
Can anyone tell the logic to know CPU performance in linux using Qt C++ code.