Changeset 81000 in vbox
- Timestamp:
- Sep 25, 2019 8:53:45 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133597
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r80999 r81000 19 19 #include <QApplication> 20 20 #include <QHeaderView> 21 #include <QLabel>22 #include <QMenu>23 #include <QPainter>24 #include <QGridLayout>25 #include <QScrollArea>26 #include <QStyle>27 #include <QXmlStreamReader>28 21 #include <QVBoxLayout> 29 22 #include <QTableWidget> … … 40 33 /* COM includes: */ 41 34 #include "CGuest.h" 42 #include "CPerformanceCollector.h"43 #include "CPerformanceMetric.h"44 35 #include "CVRDEServerInfo.h" 45 36 46 /* External includes: */47 # include <math.h>48 49 /** The time in seconds between metric inquries done to API. */50 const ULONG iPeriod = 1;51 /** The number of data points we store in UIChart. with iPeriod=1 it corresponds to 2 min. of data. */52 const int iMaximumQueueSize = 120;53 /** This is passed to IPerformanceCollector during its setup. When 1 that means IPerformanceCollector object does a data cache of size 1. */54 const int iMetricSetupCount = 1;55 const int iDecimalCount = 2;56 37 57 38 enum InfoRow … … 458 439 , m_pMainLayout(0) 459 440 , m_pRuntimeInfoWidget(0) 460 , m_strCPUMetricName("CPU Load")461 , m_strRAMMetricName("RAM Usage")462 , m_strDiskMetricName("Disk Usage")463 , m_strNetworkMetricName("Network")464 , m_strDiskIOMetricName("DiskIO")465 , m_strVMExitMetricName("VMExits")466 , m_iTimeStep(0)467 441 { 468 442 if (!m_console.isNull()) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h
r80999 r81000 24 24 /* Qt includes: */ 25 25 #include <QWidget> 26 #include <QMap>27 #include <QQueue>28 29 26 30 27 /* COM includes: */ … … 33 30 #include "CGuest.h" 34 31 #include "CMachine.h" 35 #include "CMachineDebugger.h"36 #include "CPerformanceCollector.h"37 32 38 33 /* GUI includes: */ … … 48 43 class UIRuntimeInfoWidget; 49 44 50 /** UIInformationRuntime class displays some high level performance metric of the guest system. 51 * The values are read in certain periods and cached in the GUI side. Currently we draw some line charts 52 * and pie charts (where applicable) alongside with some text. Additionally it displays a table including some 45 /** UIInformationRuntime class displays a table including some 53 46 * run time attributes. */ 54 47 class UIInformationRuntime : public QIWithRetranslateUI<QWidget> … … 86 79 CGuest m_comGuest; 87 80 88 CPerformanceCollector m_performanceMonitor;89 CMachineDebugger m_machineDebugger;90 81 /** Holds the instance of layout we create. */ 91 82 QVBoxLayout *m_pMainLayout; 92 83 UIRuntimeInfoWidget *m_pRuntimeInfoWidget; 93 84 94 QVector<QString> m_nameList;95 QVector<CUnknown> m_objectList;96 97 85 QMap<QString,QLabel*> m_infoLabels; 98 86 ComObjPtr<UIMainEventListenerImpl> m_pQtGuestListener; 99 100 /** @name These metric names are used for map keys to identify metrics.101 * @{ */102 QString m_strCPUMetricName;103 QString m_strRAMMetricName;104 QString m_strDiskMetricName;105 QString m_strNetworkMetricName;106 QString m_strDiskIOMetricName;107 QString m_strVMExitMetricName;108 /** @} */109 110 /** The following string is used while querrying CMachineDebugger. */111 QString m_strQueryString;112 quint64 m_iTimeStep;113 87 }; 114 88
Note:
See TracChangeset
for help on using the changeset viewer.