QeCpu is a small text bsaed widget that presents the running process cpu usage.
More...
QeCpu is a small text bsaed widget that presents the running process cpu usage.
It uses a QTimer to automatically update every second.
◆ __init__()
| gui.qecpu.QeCpu.__init__ |
( |
| self, |
|
|
| parent = None ) |
Initializes the QeCpu.
Please set parent to a suitable paret wigdet.
◆ calculate_cpu()
| gui.qecpu.QeCpu.calculate_cpu |
( |
| self | ) |
|
Slot that is triggered every second.
It calculates the cpu value and emits the signal. Also requests an update on the widget's graphical representation.
◆ cpu_percent()
| gui.qecpu.QeCpu.cpu_percent |
( |
| self | ) |
|
Accesor method for the cpu value.
◆ _cpu_percent
| gui.qecpu.QeCpu._cpu_percent = self._process.cpu_percent() |
|
protected |
◆ _process
| gui.qecpu.QeCpu._process = psutil.Process() |
|
protected |
◆ _timer
| gui.qecpu.QeCpu._timer = QTimer(self) |
|
protected |
◆ calculate_cpu
| gui.qecpu.QeCpu.calculate_cpu |
◆ cpu_percent_changed
| gui.qecpu.QeCpu.cpu_percent_changed = Signal(float) |
|
static |
The documentation for this class was generated from the following file:
- clients/ctrlMonTool/src/rtctk/ctrlmontool/gui/qecpu.py