VirtualBox

Ignore:
Timestamp:
Feb 20, 2024 2:35:20 AM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161798
Message:

VBoxDbg,FE/Qt: Made it possible to configure the sub-tree filtering via the command line. bugref:10376

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r103280 r103464  
    595595            m_strDbgStatisticsFilter = arguments.at(i).section('=', 1);
    596596        }
     597        else if (!::strcmp(arg, "--statistics-config") || !::strcmp(arg, "--stats-config"))
     598        {
     599            enmOptType = OptType_VMRunner;
     600            if (++i < argc)
     601                m_strDbgStatisticsConfig = arguments.at(i);
     602        }
     603        else if (!::strncmp(arg, RT_STR_TUPLE("--statistics-config=")) || !::strncmp(arg, RT_STR_TUPLE("--stats-config=")))
     604        {
     605            enmOptType = OptType_VMRunner;
     606            m_strDbgStatisticsConfig = arguments.at(i).section('=', 1);
     607        }
    597608        else if (!::strcmp(arg, "-no-debug") || !::strcmp(arg, "--no-debug"))
    598609        {
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h

    r102750 r103464  
    308308        /** Returns the --statistics-filter value. */
    309309        QString const getDebuggerStatisticsFilter() const { return m_strDbgStatisticsFilter; }
     310        /** Returns the --statistics-config value. */
     311        QString const getDebuggerStatisticsConfig() const { return m_strDbgStatisticsConfig; }
    310312
    311313        /** VBoxDbg module handle. */
     
    732734        /** Pattern of statistics to expand when opening the viewer. */
    733735        QString      m_strDbgStatisticsExpand;
    734         /** The statistics viewer filter. */
     736        /** The statistics viewer main filter pattern. */
    735737        QString      m_strDbgStatisticsFilter;
     738        /** The statistics viewer advanced filter configuration and possibly more. */
     739        QString      m_strDbgStatisticsConfig;
    736740
    737741        /** VBoxDbg module handle. */
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r103246 r103464  
    286286        "  --statistics-expand <pat>  expand the matching statistics (can be repeated)\n"
    287287        "  --statistics-filter <pat>  statistics filter\n"
     288        "  --statistics-config <str>  statistics configuration\n"
    288289        "  --no-debug                 disable the GUI debug menu and debug windows\n"
    289290        "  --start-paused             start the VM in the paused state\n"
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r103362 r103464  
    23002300void UISession::dbgShowStatistics()
    23012301{
     2302    const QByteArray &filterBytes = uiCommon().getDebuggerStatisticsFilter().toUtf8();
    23022303    const QByteArray &expandBytes = uiCommon().getDebuggerStatisticsExpand().toUtf8();
    2303     const QByteArray &filterBytes = uiCommon().getDebuggerStatisticsFilter().toUtf8();
    2304     m_pDbgGuiVT->pfnShowStatistics(m_pDbgGui, filterBytes.constData(), expandBytes.constData());
     2304    const QByteArray &configBytes = uiCommon().getDebuggerStatisticsConfig().toUtf8();
     2305    m_pDbgGuiVT->pfnShowStatistics(m_pDbgGui, filterBytes.constData(), expandBytes.constData(), configBytes.constData());
    23052306}
    23062307
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