VirtualBox

Changeset 15196 in vbox


Ignore:
Timestamp:
Dec 9, 2008 5:34:25 PM (16 years ago)
Author:
vboxsync
Message:

PGMR0DynMap: profiling the whole shebang.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r15183 r15196  
    15971597
    15981598    /* R0 only: */
    1599     STAM_REG(pVM, &pPGM->StatR0DynMapHCPage,                STAMTYPE_COUNTER, "/PGM/R0/DynMapPage/HCPage",          STAMUNIT_OCCURENCES,     "Calls to PGMDynMapHCPage (ring-0).");
     1599    STAM_REG(pVM, &pPGM->StatR0DynMapHCPage,                STAMTYPE_PROFILE, "/PGM/R0/DynMapPage/HCPage",          STAMUNIT_OCCURENCES,     "Calls to PGMDynMapHCPage (ring-0).");
    16001600    STAM_REG(pVM, &pPGM->StatR0DynMapHCPageSetOptimize,     STAMTYPE_COUNTER, "/PGM/R0/DynMapPage/HCPageSetOptimize", STAMUNIT_OCCURENCES,   "Calls to pgmDynMapOptimizeAutoSet.");
    16011601    STAM_REG(pVM, &pPGM->StatR0DynMapHCPageSetSearchHits,   STAMTYPE_COUNTER, "/PGM/R0/DynMapPage/HCPageSetSearchHits", STAMUNIT_OCCURENCES, "Set search hits.");
     
    28872887
    28882888    /* The shadow part of the nested callback mode depends on the host paging mode (AMD-V only). */
    2889     switch(pVM->pgm.s.enmHostMode)
     2889    switch (pVM->pgm.s.enmHostMode)
    28902890    {
    28912891#if HC_ARCH_BITS == 32
     
    29172917# endif
    29182918        break;
    2919 #endif /* HC_ARCH_BITS != 32 */
     2919#endif /* HC_ARCH_BITS == 32 */
    29202920
    29212921#if HC_ARCH_BITS == 64 || defined(RT_OS_DARWIN)
     
    29342934        }
    29352935        break;
    2936 #endif /* HC_ARCH_BITS == 64 || RT_ARCH_DARWIN */
     2936#endif /* HC_ARCH_BITS == 64 || RT_OS_DARWIN */
    29372937
    29382938    default:
  • trunk/src/VBox/VMM/PGMInternal.h

    r14877 r15196  
    25612561
    25622562    /* R0 only: */
    2563     STAMCOUNTER StatR0DynMapHCPage;                 /**< R0: Calls to PGMDynMapHCPage. */
     2563    STAMPROFILE StatR0DynMapHCPage;                 /**< R0: Calls to PGMDynMapHCPage. */
    25642564    STAMCOUNTER StatR0DynMapHCPageSetOptimize;      /**< R0: Calls to pgmDynMapOptimizeAutoSet. */
    25652565    STAMCOUNTER StatR0DynMapHCPageSetSearchHits;    /**< R0: Set search hits. */
  • trunk/src/VBox/VMM/VMMR0/PGMR0DynMap.cpp

    r14880 r15196  
    16451645     * Validate state.
    16461646     */
    1647     STAM_COUNTER_INC(&pVM->pgm.s.StatR0DynMapHCPage);
     1647    STAM_PROFILE_START(&pVM->pgm.s.StatR0DynMapHCPage, a);
    16481648    AssertPtr(ppv);
    16491649    *ppv = NULL;
     
    16641664    if (RT_UNLIKELY(iPage == UINT32_MAX))
    16651665    {
     1666        STAM_PROFILE_STOP(&pVM->pgm.s.StatR0DynMapHCPage, a);
    16661667        static uint32_t s_cBitched = 0;
    16671668        if (++s_cBitched < 10)
     
    17421743                pgmR0DynMapReleasePage(g_pPGMR0DynMap, iPage, 1);
    17431744
     1745                STAM_PROFILE_STOP(&pVM->pgm.s.StatR0DynMapHCPage, a);
    17441746                static uint32_t s_cBitched = 0;
    17451747                if (++s_cBitched < 10)
     
    17511753    }
    17521754
     1755    STAM_PROFILE_STOP(&pVM->pgm.s.StatR0DynMapHCPage, a);
    17531756    return VINF_SUCCESS;
    17541757}
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