1

I want to write a GUI that graphs CPU usage in real time. My goal was to be able to run a program from the GUI, and then once the program has started, a graph of the CPU usage would run that would illustrate how the program was using CPU resources. What's the simplest way of doing something like this? I'm developing on Linux, and am aware of tools like (h)top and mpstat.

EDIT: I should be a bit more descriptive, sorry. How can I get something like CPU usage from top, and redirect it to a GUI that illustrates it into a graph form in real time?

dylam
  • 553
  • 3
  • 6
  • 16
  • Unless you ask a specific question, your post will likely be closed. Stack Overflow is about answering specific programming questions, not teaching you to program from scratch. We can't reasonably answer this. – user229044 Nov 02 '11 at 21:54
  • Did you try konky? It supports LUA too! Not exactly what you are searching for but still! – andreapier Nov 02 '11 at 21:54
  • For measuring CPU usage: http://stackoverflow.com/questions/1420426/calculating-cpu-usage-of-a-process-in-linux – laher Nov 02 '11 at 22:04

1 Answers1

1

You might want to check out Qt framework. Qt has really good support GUI development on Linux.

Vishnu Pedireddi
  • 2,142
  • 4
  • 25
  • 34