VirtualBox

Changeset 46493 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Jun 11, 2013 1:34:40 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86340
Message:

STAMR3Deregister* optimizations. Relevant for both startup and shutdown times.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/stam.h

    r44528 r46493  
    12011201                                        PFNSTAMR3CALLBACKRESET pfnReset, PFNSTAMR3CALLBACKPRINT pfnPrint,
    12021202                                        const char *pszDesc, const char *pszName, va_list args);
    1203 VMMR3DECL(int)  STAMR3DeregisterU(PUVM pUVM, void *pvSample);
    1204 VMMR3DECL(int)  STAMR3Deregister(PVM pVM, void *pvSample);
    1205 
    1206 /** @def STAM_REL_DEREG
    1207  * Deregisters a statistics sample if statistics are enabled.
    1208  *
    1209  * @param   pVM         VM Handle.
    1210  * @param   pvSample    Pointer to the sample.
    1211  */
    1212 #define STAM_REL_DEREG(pVM, pvSample) \
    1213     STAM_REL_STATS({ int rcStam = STAMR3Deregister(pVM, pvSample); AssertRC(rcStam); })
    1214 /** @def STAM_DEREG
    1215  * Deregisters a statistics sample if statistics are enabled.
    1216  *
    1217  * @param   pVM         VM Handle.
    1218  * @param   pvSample    Pointer to the sample.
    1219  */
    1220 #define STAM_DEREG(pVM, pvSample) \
    1221     STAM_STATS({ STAM_REL_DEREG(pVM, pvSample); })
     1203VMMR3DECL(int)  STAMR3Deregister(PUVM pUVM, const char *pszPat);
     1204VMMR3DECL(int)  STAMR3DeregisterF(PUVM pUVM, const char *pszPatFmt, ...);
     1205VMMR3DECL(int)  STAMR3DeregisterV(PUVM pUVM, const char *pszPatFmt, va_list va);
     1206VMMR3DECL(int)  STAMR3DeregisterByAddr(PUVM pUVM, void *pvSample);
    12221207
    12231208VMMR3DECL(int)  STAMR3Reset(PUVM pUVM, const char *pszPat);
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