- Timestamp:
- Apr 9, 2010 10:04:59 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdrv.h
r27935 r28133 1380 1380 1381 1381 /** 1382 * Convenience wrapper that registers counter which is always visible. 1383 * 1384 * @param pDrvIns The driver instance. 1385 * @param pCounter Pointer to the counter variable. 1386 * @param pszName The name of the sample. This is prefixed with 1387 * "/Drivers/<drivername>-<instance no>/". 1388 */ 1389 DECLINLINE(void) PDMDrvHlpSTAMRegCounter(PPDMDRVINS pDrvIns, PSTAMCOUNTER pCounter, const char *pszName, STAMUNIT enmUnit, const char *pszDesc) 1390 { 1391 pDrvIns->pHlpR3->pfnSTAMRegisterF(pDrvIns, pCounter, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, enmUnit, pszDesc, 1392 "/Drivers/%s-%u/%s", pDrvIns->pReg->szName, pDrvIns->iInstance, pszName); 1393 } 1394 1395 /** 1396 * Convenience wrapper that registers profiling sample which is always visible. 1397 * 1398 * @param pDrvIns The driver instance. 1399 * @param pProfile Pointer to the profiling variable. 1400 * @param pszName The name of the sample. This is prefixed with 1401 * "/Drivers/<drivername>-<instance no>/". 1402 */ 1403 DECLINLINE(void) PDMDrvHlpSTAMRegProfile(PPDMDRVINS pDrvIns, PSTAMPROFILE pProfile, const char *pszName, STAMUNIT enmUnit, const char *pszDesc) 1404 { 1405 pDrvIns->pHlpR3->pfnSTAMRegisterF(pDrvIns, pProfile, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, enmUnit, pszDesc, 1406 "/Drivers/%s-%u/%s", pDrvIns->pReg->szName, pDrvIns->iInstance, pszName); 1407 } 1408 1409 /** 1410 * Convenience wrapper that registers an advanced profiling sample which is 1411 * always visible. 1412 * 1413 * @param pDrvIns The driver instance. 1414 * @param pProfile Pointer to the profiling variable. 1415 * @param pszName The name of the sample. This is prefixed with 1416 * "/Drivers/<drivername>-<instance no>/". 1417 */ 1418 DECLINLINE(void) PDMDrvHlpSTAMRegProfileAdv(PPDMDRVINS pDrvIns, PSTAMPROFILEADV pProfile, const char *pszName, STAMUNIT enmUnit, const char *pszDesc) 1419 { 1420 pDrvIns->pHlpR3->pfnSTAMRegisterF(pDrvIns, pProfile, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, enmUnit, pszDesc, 1421 "/Drivers/%s-%u/%s", pDrvIns->pReg->szName, pDrvIns->iInstance, pszName); 1422 } 1423 1424 /** 1382 1425 * @copydoc PDMDRVHLP::pfnSTAMDeregister 1383 1426 */
Note:
See TracChangeset
for help on using the changeset viewer.