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