VirtualBox

Changeset 81000 in vbox


Ignore:
Timestamp:
Sep 25, 2019 8:53:45 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133597
Message:

FE/Qt: bugref:9510. Some cleanup.

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  
    1919#include <QApplication>
    2020#include <QHeaderView>
    21 #include <QLabel>
    22 #include <QMenu>
    23 #include <QPainter>
    24 #include <QGridLayout>
    25 #include <QScrollArea>
    26 #include <QStyle>
    27 #include <QXmlStreamReader>
    2821#include <QVBoxLayout>
    2922#include <QTableWidget>
     
    4033/* COM includes: */
    4134#include "CGuest.h"
    42 #include "CPerformanceCollector.h"
    43 #include "CPerformanceMetric.h"
    4435#include "CVRDEServerInfo.h"
    4536
    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;
    5637
    5738enum InfoRow
     
    458439    , m_pMainLayout(0)
    459440    , 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)
    467441{
    468442    if (!m_console.isNull())
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h

    r80999 r81000  
    2424/* Qt includes: */
    2525#include <QWidget>
    26 #include <QMap>
    27 #include <QQueue>
    28 
    2926
    3027/* COM includes: */
     
    3330#include "CGuest.h"
    3431#include "CMachine.h"
    35 #include "CMachineDebugger.h"
    36 #include "CPerformanceCollector.h"
    3732
    3833/* GUI includes: */
     
    4843class UIRuntimeInfoWidget;
    4944
    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
    5346  * run time attributes. */
    5447class UIInformationRuntime : public QIWithRetranslateUI<QWidget>
     
    8679    CGuest m_comGuest;
    8780
    88     CPerformanceCollector m_performanceMonitor;
    89     CMachineDebugger      m_machineDebugger;
    9081    /** Holds the instance of layout we create. */
    9182    QVBoxLayout *m_pMainLayout;
    9283    UIRuntimeInfoWidget *m_pRuntimeInfoWidget;
    9384
    94     QVector<QString> m_nameList;
    95     QVector<CUnknown> m_objectList;
    96 
    9785    QMap<QString,QLabel*>  m_infoLabels;
    9886    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;
    11387};
    11488
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette