VirtualBox

Changeset 103462 in vbox


Ignore:
Timestamp:
Feb 19, 2024 11:26:11 PM (9 months ago)
Author:
vboxsync
Message:

VBoxDbg: Reverted r161795, included too much. bugref:10376

Location:
trunk/src/VBox/Debugger
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbg.cpp

    r103461 r103462  
    220220 *
    221221 * @returns VBox status code.
    222  * @param   pGui            The instance returned by DBGGuiCreate().
    223  * @param   pszFilter       Filter pattern.
    224  * @param   pszExpand       Expand pattern.
    225  * @param   pszAdvFilter    Advanced filter configuration string (min/max/regexp
    226  *                          on sub-trees).
    227  */
    228 DBGDECL(int) DBGGuiShowStatistics(PDBGGUI pGui, const char *pszFilter, const char *pszExpand, const char *pszAdvFilter)
     222 * @param   pGui        The instance returned by DBGGuiCreate().
     223 * @param   pszFilter   Filter pattern.
     224 * @param   pszExpand   Expand pattern.
     225 */
     226DBGDECL(int) DBGGuiShowStatistics(PDBGGUI pGui, const char *pszFilter, const char *pszExpand)
    229227{
    230228    AssertReturn(pGui, VERR_INVALID_PARAMETER);
    231229    AssertMsgReturn(pGui->u32Magic == DBGGUI_MAGIC, ("u32Magic=%#x\n", pGui->u32Magic), VERR_INVALID_PARAMETER);
    232     return pGui->pVBoxDbgGui->showStatistics(pszFilter, pszExpand, pszAdvFilter);
     230    return pGui->pVBoxDbgGui->showStatistics(pszFilter, pszExpand);
    233231}
    234232
  • trunk/src/VBox/Debugger/VBoxDbgGui.cpp

    r103461 r103462  
    182182
    183183int
    184 VBoxDbgGui::showStatistics(const char *pszFilter, const char *pszExpand, const char *pszAdvFilter)
     184VBoxDbgGui::showStatistics(const char *pszFilter, const char *pszExpand)
    185185{
    186186    if (!m_pDbgStats)
     
    189189                                       pszFilter && *pszFilter ? pszFilter :  "*",
    190190                                       pszExpand && *pszExpand ? pszExpand : NULL,
    191                                        pszAdvFilter && *pszAdvFilter ? pszAdvFilter : NULL,
    192191                                       2, m_pParent);
    193192        connect(m_pDbgStats, SIGNAL(destroyed(QObject *)), this, SLOT(notifyChildDestroyed(QObject *)));
  • trunk/src/VBox/Debugger/VBoxDbgGui.h

    r103461 r103462  
    103103     *
    104104     * @returns VBox status code.
    105      * @param   pszFilter       Filter pattern.
    106      * @param   pszExpand       Expand pattern.
    107      * @param   pszAdvFilter    Advanced filter configuration string (min/max/regexp
    108      *                          on sub-trees).
    109      */
    110     int showStatistics(const char *pszFilter, const char *pszExpand, const char *pszAdvFilter);
     105     * @param   pszFilter   Filter pattern.
     106     * @param   pszExpand   Expand pattern.
     107     */
     108    int showStatistics(const char *pszFilter, const char *pszExpand);
    111109
    112110    /**
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt.cpp

    r103461 r103462  
    719719     * Constructor.
    720720     *
    721      * @param   a_pszAdvFilter  Configuration string from the command line or such.
    722721     * @param   a_pParent       The parent object.
    723722     */
    724     VBoxDbgStatsSortFileProxyModel(const char *a_pszAdvFilter, QObject *a_pParent);
     723    VBoxDbgStatsSortFileProxyModel(QObject *a_pParent);
    725724
    726725    /** Destructor */
    727726    virtual ~VBoxDbgStatsSortFileProxyModel()
    728727    {}
    729 
    730     /** Gets the unused-rows visibility status. */
    731     bool isShowingUnusedRows() const { return m_fShowUnusedRows; }
    732728
    733729    /** Sets whether or not to show unused rows (all zeros). */
     
    38833879    QModelIndex Idx = m_pCurMenu ? m_CurIndex : currentIndex();
    38843880    if (Idx.isValid())
    3885         Idx = myGetRootIndex();
     3881        Idx == myGetRootIndex();
    38863882    Idx = m_pProxyModel->mapToSource(Idx);
    38873883    PDBGGUISTATSNODE pNode = m_pVBoxModel->nodeFromIndex(Idx);
     
    40914087
    40924088VBoxDbgStats::VBoxDbgStats(VBoxDbgGui *a_pDbgGui, const char *pszFilter /*= NULL*/, const char *pszExpand /*= NULL*/,
    4093                            const char *pszAdvFilter /*= NULL*/, unsigned uRefreshRate/* = 0*/, QWidget *pParent/* = NULL*/)
     4089                           unsigned uRefreshRate/* = 0*/, QWidget *pParent/* = NULL*/)
    40944090    : VBoxDbgBaseWindow(a_pDbgGui, pParent, "Statistics")
    40954091    , m_PatStr(pszFilter), m_pPatCB(NULL), m_uRefreshRate(0), m_pTimer(NULL), m_pView(NULL)
     
    41534149    VBoxDbgStatsSortFileProxyModel *pProxyModel = new VBoxDbgStatsSortFileProxyModel(this);
    41544150    m_pView = new VBoxDbgStatsView(a_pDbgGui, pModel, pProxyModel, this);
    4155     pCheckBox->setCheckState(pProxyModel->isShowingUnusedRows() ? Qt::Checked : Qt::Unchecked)
    41564151#else
    41574152    m_pView = new VBoxDbgStatsView(a_pDbgGui, pModel, NULL, this);
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt.h

    r103461 r103462  
    244244     * @param   pszExpand       Initial expansion pattern. NULL means nothing is
    245245     *                          expanded.
    246      * @param   pszAdvFilter    Advanced filter configuration string (min/max/regexp
    247      *                          on sub-trees).
    248246     * @param   uRefreshRate    The refresh rate. 0 means not to refresh and is the default.
    249247     * @param   pParent         Parent widget.
    250248     */
    251249    VBoxDbgStats(VBoxDbgGui *a_pDbgGui, const char *pszFilter = NULL, const char *pszExpand = NULL,
    252                  const char *pszAdvFilter = NULL, unsigned uRefreshRate = 0, QWidget *pParent = NULL);
     250                 unsigned uRefreshRate = 0, QWidget *pParent = NULL);
    253251
    254252    /** Destructor. */
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