![]() |
University of Murcia, Spain ![]() |
QVCPUPlot Class ReferenceClass for plot graphs of worker's cpustat properties.
More...
|
This class lets us plot graphs for QVStat worker's output properties. Each QVWorker object is created with a property containing a stat object, resuming its time consumption and internal statistics. The class QVCPUPlot can be used to plot those time statistics.
The following code features how to create a CPU plot object in a QVision application:
void main() { [...] ComponentTreeWorker componentTreeWorker("Component Tree"); CannyWorker cannyWorker("Canny operator"); ContourPainter contourPainter("Contour painter"); [...] QVCPUPlot cpuPlot("CPU Plot", true, 10); componentTreeWorker.linkProperty("cpu stats", cpuPlot); cannyWorker.linkProperty("cpu stats", cpuPlot); contourPainter.linkProperty("cpu stats", cpuPlot); [...] }
This application will display a plot like the following:
By default, the QVDefaultGUI includes the following button for CPU plot statistics displaying, which opens a QVNumericPlot widget plotting the worker CPU usage: