Changeset 103462 in vbox
- Timestamp:
- Feb 19, 2024 11:26:11 PM (9 months ago)
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbg.cpp
r103461 r103462 220 220 * 221 221 * @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 */ 226 DBGDECL(int) DBGGuiShowStatistics(PDBGGUI pGui, const char *pszFilter, const char *pszExpand) 229 227 { 230 228 AssertReturn(pGui, VERR_INVALID_PARAMETER); 231 229 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); 233 231 } 234 232 -
trunk/src/VBox/Debugger/VBoxDbgGui.cpp
r103461 r103462 182 182 183 183 int 184 VBoxDbgGui::showStatistics(const char *pszFilter, const char *pszExpand , const char *pszAdvFilter)184 VBoxDbgGui::showStatistics(const char *pszFilter, const char *pszExpand) 185 185 { 186 186 if (!m_pDbgStats) … … 189 189 pszFilter && *pszFilter ? pszFilter : "*", 190 190 pszExpand && *pszExpand ? pszExpand : NULL, 191 pszAdvFilter && *pszAdvFilter ? pszAdvFilter : NULL,192 191 2, m_pParent); 193 192 connect(m_pDbgStats, SIGNAL(destroyed(QObject *)), this, SLOT(notifyChildDestroyed(QObject *))); -
trunk/src/VBox/Debugger/VBoxDbgGui.h
r103461 r103462 103 103 * 104 104 * @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); 111 109 112 110 /** -
trunk/src/VBox/Debugger/VBoxDbgStatsQt.cpp
r103461 r103462 719 719 * Constructor. 720 720 * 721 * @param a_pszAdvFilter Configuration string from the command line or such.722 721 * @param a_pParent The parent object. 723 722 */ 724 VBoxDbgStatsSortFileProxyModel( const char *a_pszAdvFilter,QObject *a_pParent);723 VBoxDbgStatsSortFileProxyModel(QObject *a_pParent); 725 724 726 725 /** Destructor */ 727 726 virtual ~VBoxDbgStatsSortFileProxyModel() 728 727 {} 729 730 /** Gets the unused-rows visibility status. */731 bool isShowingUnusedRows() const { return m_fShowUnusedRows; }732 728 733 729 /** Sets whether or not to show unused rows (all zeros). */ … … 3883 3879 QModelIndex Idx = m_pCurMenu ? m_CurIndex : currentIndex(); 3884 3880 if (Idx.isValid()) 3885 Idx = myGetRootIndex();3881 Idx == myGetRootIndex(); 3886 3882 Idx = m_pProxyModel->mapToSource(Idx); 3887 3883 PDBGGUISTATSNODE pNode = m_pVBoxModel->nodeFromIndex(Idx); … … 4091 4087 4092 4088 VBoxDbgStats::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*/) 4094 4090 : VBoxDbgBaseWindow(a_pDbgGui, pParent, "Statistics") 4095 4091 , m_PatStr(pszFilter), m_pPatCB(NULL), m_uRefreshRate(0), m_pTimer(NULL), m_pView(NULL) … … 4153 4149 VBoxDbgStatsSortFileProxyModel *pProxyModel = new VBoxDbgStatsSortFileProxyModel(this); 4154 4150 m_pView = new VBoxDbgStatsView(a_pDbgGui, pModel, pProxyModel, this); 4155 pCheckBox->setCheckState(pProxyModel->isShowingUnusedRows() ? Qt::Checked : Qt::Unchecked)4156 4151 #else 4157 4152 m_pView = new VBoxDbgStatsView(a_pDbgGui, pModel, NULL, this); -
trunk/src/VBox/Debugger/VBoxDbgStatsQt.h
r103461 r103462 244 244 * @param pszExpand Initial expansion pattern. NULL means nothing is 245 245 * expanded. 246 * @param pszAdvFilter Advanced filter configuration string (min/max/regexp247 * on sub-trees).248 246 * @param uRefreshRate The refresh rate. 0 means not to refresh and is the default. 249 247 * @param pParent Parent widget. 250 248 */ 251 249 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); 253 251 254 252 /** Destructor. */
Note:
See TracChangeset
for help on using the changeset viewer.