VirtualBox

Changeset 83345 in vbox for trunk


Ignore:
Timestamp:
Mar 20, 2020 9:24:43 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9686. Renaming and moving some classes/files. take 2

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r83334 r83345  
    333333        ./src/manager/tools \
    334334        ./src/monitor \
    335         ./src/monitor/resource
     335        ./src/monitor/resource \
     336        ./src/monitor/performance
    336337
    337338ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     
    719720VirtualBoxVM_QT_MOCHDRS = \
    720721        src/globals/UIStarter.h \
     722        src/monitor/performance/UIPerformanceMonitor.h \
    721723        src/runtime/UIConsoleEventHandler.h \
    722724        src/runtime/UIFrameBuffer.h \
     
    737739        src/runtime/information/UIInformationConfiguration.h \
    738740        src/runtime/information/UIVMInformationDialog.h \
    739         src/runtime/information/UIInformationPerformanceMonitor.h \
    740741        src/runtime/information/UIInformationRuntime.h \
    741742        src/guestctrl/UIFileManager.h \
     
    977978#
    978979VirtualBoxVM_QT_MOCSRCS = \
     980        src/monitor/performance/UIPerformanceMonitor.cpp \
    979981        src/runtime/UIConsoleEventHandler.cpp \
    980982        src/runtime/UIFrameBuffer.cpp \
    981983        src/runtime/UIIndicatorsPool.cpp \
    982         src/runtime/information/UIInformationPerformanceMonitor.cpp \
    983984        src/runtime/information/UIInformationRuntime.cpp \
    984985        src/guestctrl/UIFileManager.cpp \
     
    11901191        src/main.cpp \
    11911192        src/globals/UIStarter.cpp \
     1193        src/monitor/performance/UIPerformanceMonitor.cpp \
    11921194        src/runtime/UIConsoleEventHandler.cpp \
    11931195        src/runtime/UIFrameBuffer.cpp \
     
    12081210        src/runtime/information/UIInformationConfiguration.cpp \
    12091211        src/runtime/information/UIVMInformationDialog.cpp \
    1210         src/runtime/information/UIInformationPerformanceMonitor.cpp \
    12111212        src/runtime/information/UIInformationRuntime.cpp \
    12121213        src/guestctrl/UIFileManager.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/performance/UIPerformanceMonitor.cpp

    r83344 r83345  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIInformationPerformanceMonitor class implementation.
     3 * VBox Qt GUI - UIPerformanceMonitor class implementation.
    44 */
    55
     
    2929/* GUI includes: */
    3030#include "UICommon.h"
    31 #include "UIInformationPerformanceMonitor.h"
     31#include "UIPerformanceMonitor.h"
    3232#include "UISession.h"
    3333
     
    779779
    780780/*********************************************************************************************************************************
    781 *   UIInformationPerformanceMonitor implementation.                                                                              *
     781*   UIPerformanceMonitor implementation.                                                                              *
    782782*********************************************************************************************************************************/
    783783
    784 UIInformationPerformanceMonitor::UIInformationPerformanceMonitor(QWidget *pParent, const CMachine &machine, const CConsole &console, const UISession *pSession)
     784UIPerformanceMonitor::UIPerformanceMonitor(QWidget *pParent, const CMachine &machine, const CConsole &console, const UISession *pSession)
    785785    : QIWithRetranslateUI<QWidget>(pParent)
    786786    , m_fGuestAdditionsAvailable(false)
     
    800800        m_comGuest = m_console.GetGuest();
    801801    m_fGuestAdditionsAvailable = guestAdditionsAvailable(6 /* minimum major version */);
    802     connect(pSession, &UISession::sigAdditionsStateChange, this, &UIInformationPerformanceMonitor::sltGuestAdditionsStateChange);
     802    connect(pSession, &UISession::sigAdditionsStateChange, this, &UIPerformanceMonitor::sltGuestAdditionsStateChange);
    803803
    804804    prepareMetrics();
     
    808808}
    809809
    810 UIInformationPerformanceMonitor::~UIInformationPerformanceMonitor()
    811 {
    812 }
    813 
    814 void UIInformationPerformanceMonitor::retranslateUi()
     810UIPerformanceMonitor::~UIPerformanceMonitor()
     811{
     812}
     813
     814void UIPerformanceMonitor::retranslateUi()
    815815{
    816816    foreach (UIChart *pChart, m_charts)
     
    877877}
    878878
    879 void UIInformationPerformanceMonitor::prepareObjects()
     879void UIPerformanceMonitor::prepareObjects()
    880880{
    881881    m_pMainLayout = new QVBoxLayout(this);
     
    887887    if (m_pTimer)
    888888    {
    889         connect(m_pTimer, &QTimer::timeout, this, &UIInformationPerformanceMonitor::sltTimeout);
     889        connect(m_pTimer, &QTimer::timeout, this, &UIPerformanceMonitor::sltTimeout);
    890890        m_pTimer->start(1000 * iPeriod);
    891891    }
     
    943943}
    944944
    945 void UIInformationPerformanceMonitor::sltTimeout()
     945void UIPerformanceMonitor::sltTimeout()
    946946{
    947947    if (m_performanceMonitor.isNull())
     
    10221022
    10231023/* static */
    1024 void UIInformationPerformanceMonitor::getNetworkLoad(CMachineDebugger &debugger, quint64 &uOutNetworkReceived, quint64 &uOutNetworkTransmitted)
     1024void UIPerformanceMonitor::getNetworkLoad(CMachineDebugger &debugger, quint64 &uOutNetworkReceived, quint64 &uOutNetworkTransmitted)
    10251025{
    10261026    uOutNetworkReceived = 0;
     
    10391039
    10401040/* static */
    1041 void UIInformationPerformanceMonitor::getDiskLoad(CMachineDebugger &debugger, quint64 &uOutDiskWritten, quint64 &uOutDiskRead)
     1041void UIPerformanceMonitor::getDiskLoad(CMachineDebugger &debugger, quint64 &uOutDiskWritten, quint64 &uOutDiskRead)
    10421042{
    10431043    QVector<UIDebuggerMetricData> xmlData = getAndParseStatsFromDebugger(debugger, "/Public/Storage/*/Port*/Bytes*");
     
    10541054
    10551055/* static */
    1056 void UIInformationPerformanceMonitor::getVMMExitCount(CMachineDebugger &debugger, quint64 &uOutVMMExitCount)
     1056void UIPerformanceMonitor::getVMMExitCount(CMachineDebugger &debugger, quint64 &uOutVMMExitCount)
    10571057{
    10581058    QVector<UIDebuggerMetricData> xmlData = getAndParseStatsFromDebugger(debugger, "/PROF/CPU*/EM/RecordedExits");
     
    10701070 * @returns
    10711071 */
    1072 void UIInformationPerformanceMonitor::sltGuestAdditionsStateChange()
     1072void UIPerformanceMonitor::sltGuestAdditionsStateChange()
    10731073{
    10741074    bool fGuestAdditionsAvailable = guestAdditionsAvailable(6 /* minimum major version */);
     
    10791079}
    10801080
    1081 void UIInformationPerformanceMonitor::prepareMetrics()
     1081void UIPerformanceMonitor::prepareMetrics()
    10821082{
    10831083    m_performanceMonitor = uiCommon().virtualBox().GetPerformanceCollector();
     
    11261126}
    11271127
    1128 bool UIInformationPerformanceMonitor::guestAdditionsAvailable(int iMinimumMajorVersion)
     1128bool UIPerformanceMonitor::guestAdditionsAvailable(int iMinimumMajorVersion)
    11291129{
    11301130    if (m_comGuest.isNull())
     
    11451145}
    11461146
    1147 void UIInformationPerformanceMonitor::enableDisableGuestAdditionDependedWidgets(bool fEnable)
     1147void UIPerformanceMonitor::enableDisableGuestAdditionDependedWidgets(bool fEnable)
    11481148{
    11491149    for (QMap<QString, UIMetric>::const_iterator iterator =  m_metrics.begin();
     
    11651165}
    11661166
    1167 void UIInformationPerformanceMonitor::updateCPUGraphsAndMetric(ULONG iExecutingPercentage, ULONG iOtherPercentage)
     1167void UIPerformanceMonitor::updateCPUGraphsAndMetric(ULONG iExecutingPercentage, ULONG iOtherPercentage)
    11681168{
    11691169    UIMetric &CPUMetric = m_metrics[m_strCPUMetricName];
     
    11901190}
    11911191
    1192 void UIInformationPerformanceMonitor::updateRAMGraphsAndMetric(quint64 iTotalRAM, quint64 iFreeRAM)
     1192void UIPerformanceMonitor::updateRAMGraphsAndMetric(quint64 iTotalRAM, quint64 iFreeRAM)
    11931193{
    11941194    UIMetric &RAMMetric = m_metrics[m_strRAMMetricName];
     
    12101210}
    12111211
    1212 void UIInformationPerformanceMonitor::updateNetworkGraphsAndMetric(quint64 iReceiveTotal, quint64 iTransmitTotal)
     1212void UIPerformanceMonitor::updateNetworkGraphsAndMetric(quint64 iReceiveTotal, quint64 iTransmitTotal)
    12131213{
    12141214    UIMetric &NetMetric = m_metrics[m_strNetworkMetricName];
     
    12531253}
    12541254
    1255 void UIInformationPerformanceMonitor::updateDiskIOGraphsAndMetric(quint64 uDiskIOTotalWritten, quint64 uDiskIOTotalRead)
     1255void UIPerformanceMonitor::updateDiskIOGraphsAndMetric(quint64 uDiskIOTotalWritten, quint64 uDiskIOTotalRead)
    12561256{
    12571257    UIMetric &diskMetric = m_metrics[m_strDiskIOMetricName];
     
    12961296}
    12971297
    1298 void UIInformationPerformanceMonitor::updateVMExitMetric(quint64 uTotalVMExits)
     1298void UIPerformanceMonitor::updateVMExitMetric(quint64 uTotalVMExits)
    12991299{
    13001300    if (uTotalVMExits <= 0)
     
    13291329}
    13301330
    1331 QString UIInformationPerformanceMonitor::dataColorString(const QString &strChartName, int iDataIndex)
     1331QString UIPerformanceMonitor::dataColorString(const QString &strChartName, int iDataIndex)
    13321332{
    13331333    if (!m_charts.contains(strChartName))
     
    13401340
    13411341/* static */
    1342 QVector<UIDebuggerMetricData> UIInformationPerformanceMonitor::getAndParseStatsFromDebugger(CMachineDebugger &debugger, const QString &strQuery)
     1342QVector<UIDebuggerMetricData> UIPerformanceMonitor::getAndParseStatsFromDebugger(CMachineDebugger &debugger, const QString &strQuery)
    13431343{
    13441344    QVector<UIDebuggerMetricData> xmlData;
     
    13691369    return xmlData;
    13701370}
    1371 #include "UIInformationPerformanceMonitor.moc"
     1371#include "UIPerformanceMonitor.moc"
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/performance/UIPerformanceMonitor.h

    r83344 r83345  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIInformationPerformanceMonitor class declaration.
     3 * VBox Qt GUI - UIPerformanceMonitor class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_runtime_information_UIInformationPerformanceMonitor_h
    19 #define FEQT_INCLUDED_SRC_runtime_information_UIInformationPerformanceMonitor_h
     18#ifndef FEQT_INCLUDED_SRC_monitor_performance_UIPerformanceMonitor_h
     19#define FEQT_INCLUDED_SRC_monitor_performance_UIPerformanceMonitor_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    106106};
    107107
    108 /** UIInformationPerformanceMonitor class displays some high level performance metric of the guest system.
     108/** UIPerformanceMonitor class displays some high level performance metric of the guest system.
    109109  * The values are read in certain periods and cached in the GUI side. Currently we draw some line charts
    110110  * and pie charts (where applicable) alongside with some text. IPerformanceCollector and IMachineDebugger are
    111111  * two sources of the performance metrics. Unfortunately these two have very distinct APIs resulting a bit too much
    112112  * special casing etc.*/
    113 class UIInformationPerformanceMonitor : public QIWithRetranslateUI<QWidget>
     113class UIPerformanceMonitor : public QIWithRetranslateUI<QWidget>
    114114{
    115115    Q_OBJECT;
     
    120120      * @param machine is machine reference.
    121121      * @param console is machine console reference. */
    122     UIInformationPerformanceMonitor(QWidget *pParent, const CMachine &machine, const CConsole &console, const UISession *pSession);
    123     ~UIInformationPerformanceMonitor();
     122    UIPerformanceMonitor(QWidget *pParent, const CMachine &machine, const CConsole &console, const UISession *pSession);
     123    ~UIPerformanceMonitor();
    124124
    125125    /** @name Static utlity methods that query and parse IMachineDebugger outputs for specific metrix types.
     
    227227};
    228228
    229 #endif /* !FEQT_INCLUDED_SRC_runtime_information_UIInformationPerformanceMonitor_h */
     229#endif /* !FEQT_INCLUDED_SRC_monitor_performance_UIPerformanceMonitor_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.cpp

    r83334 r83345  
    3232#include "UIExtraDataManager.h"
    3333#include "UIIconPool.h"
    34 #include "UIInformationPerformanceMonitor.h"
     34#include "UIPerformanceMonitor.h"
    3535#include "UIResourceMonitor.h"
    3636#include "UIMessageCenter.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r82968 r83345  
    3535#include "VBoxUtils.h"
    3636#include "UIInformationConfiguration.h"
    37 #include "UIInformationPerformanceMonitor.h"
     37#include "UIPerformanceMonitor.h"
    3838#include "UIInformationRuntime.h"
    3939#include "UIGuestProcessControlWidget.h"
     
    199199
    200200        /* Create Performance Monitor tab: */
    201         UIInformationPerformanceMonitor *pPerformanceMonitorWidget =
    202             new UIInformationPerformanceMonitor(this, m_pMachineWindow->machine(), m_pMachineWindow->console(), m_pMachineWindow->uisession());
     201        UIPerformanceMonitor *pPerformanceMonitorWidget =
     202            new UIPerformanceMonitor(this, m_pMachineWindow->machine(), m_pMachineWindow->console(), m_pMachineWindow->uisession());
    203203        if (pPerformanceMonitorWidget)
    204204        {
Note: See TracChangeset for help on using the changeset viewer.

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