Displays the CPU load used up by the data processing callbacks. More...
#include <ControlPanel.h>
Public Member Functions | |
CPUMeter () | |
~CPUMeter () | |
void | updateCPU (float usage) |
Updates the load level displayed by the CPUMeter. | |
void | paint (Graphics &g) |
Draws the CPUMeter. |
Displays the CPU load used up by the data processing callbacks.
The CPUMeter is located in the ControlPanel. Whenever acquisition is active, it uses a built-in JUCE method to display the CPU load required to run the ProcessorGraph.
It's not clear how accurate the meter is, nor how it deals with CPUs using multiple cores.
For a more accurate measurement of CPU load, it's recommended to use a graphical interface or type 'top' inside a terminal.
CPUMeter::CPUMeter | ( | ) |
CPUMeter::~CPUMeter | ( | ) |
void CPUMeter::updateCPU | ( | float | usage | ) |
Updates the load level displayed by the CPUMeter.
Called by the ControlPanel.
void CPUMeter::paint | ( | Graphics & | g | ) |
Draws the CPUMeter.