Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CPU Performance Plotting
Forum Update on Monday, May 27th 2025

CPU Performance Plotting

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nike.niec
    wrote on 12 May 2014, 16:55 last edited by
    #1

    Is there any in-bulit Qt Widget classes to plot CPU Performance as plotted in Windows Task Manager.
    Is there any examples available?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on 12 May 2014, 17:03 last edited by
      #2

      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;@

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nike.niec
        wrote on 13 May 2014, 18:01 last edited by
        #3

        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

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tubbias
          wrote on 14 May 2014, 05:32 last edited by
          #4

          I would recommend "QCustomPlot":http://www.qcustomplot.com/.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Soraltan
            wrote on 14 May 2014, 07:20 last edited by
            #5

            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.

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nike.niec
              wrote on 20 May 2014, 11:13 last edited by
              #6

              Hi,
              Can anyone tell the logic to know CPU performance in linux using Qt C++ code.

              1 Reply Last reply
              0

              4/6

              14 May 2014, 05:32

              • Login

              • Login or register to search.
              4 out of 6
              • First post
                4/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved