CPU Performance Plotting
-
wrote on 12 May 2014, 16:55 last edited by
Is there any in-bulit Qt Widget classes to plot CPU Performance as plotted in Windows Task Manager.
Is there any examples available? -
wrote on 12 May 2014, 17:03 last edited by
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;@
-
wrote on 13 May 2014, 18:01 last edited by
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 -
wrote on 14 May 2014, 05:32 last edited by
I would recommend "QCustomPlot":http://www.qcustomplot.com/.
-
wrote on 14 May 2014, 07:20 last edited by
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.
-
wrote on 20 May 2014, 11:13 last edited by
Hi,
Can anyone tell the logic to know CPU performance in linux using Qt C++ code.
1/6