VirtualBox

Changeset 96894 in vbox for trunk


Ignore:
Timestamp:
Sep 27, 2022 9:00:15 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153801
Message:

VMM/EM: Changed /PROF/CPU%u/EM/HMExec and HMExecuteCalled into runtime statistics so we can better see HM activity in release builds.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r96712 r96894  
    252252        EM_REG_COUNTER(&pVCpu->em.s.StatPrivEmu,            "/PROF/CPU%u/EM/Emulation/Priv",    "Profiling of emR3RawPrivileged.");
    253253        EM_REG_PROFILE(&pVCpu->em.s.StatHMEntry,            "/PROF/CPU%u/EM/HMEnter",           "Profiling Hardware Accelerated Mode entry overhead.");
     254#endif
    254255        EM_REG_PROFILE(&pVCpu->em.s.StatHMExec,             "/PROF/CPU%u/EM/HMExec",            "Profiling Hardware Accelerated Mode execution.");
    255256        EM_REG_COUNTER(&pVCpu->em.s.StatHMExecuteCalled,    "/PROF/CPU%u/EM/HMExecuteCalled",   "Number of times enmR3HMExecute is called.");
     257#ifdef VBOX_WITH_STATISTICS
    256258        EM_REG_PROFILE(&pVCpu->em.s.StatIEMEmu,             "/PROF/CPU%u/EM/IEMEmuSingle",      "Profiling single instruction IEM execution.");
    257259        EM_REG_PROFILE(&pVCpu->em.s.StatIEMThenREM,         "/PROF/CPU%u/EM/IEMThenRem",        "Profiling IEM-then-REM instruction execution (by IEM).");
    258260        EM_REG_PROFILE(&pVCpu->em.s.StatNEMEntry,           "/PROF/CPU%u/EM/NEMEnter",          "Profiling NEM entry overhead.");
    259 #endif /* VBOX_WITH_STATISTICS */
     261#endif
    260262        EM_REG_PROFILE(&pVCpu->em.s.StatNEMExec,            "/PROF/CPU%u/EM/NEMExec",           "Profiling NEM execution.");
    261263        EM_REG_COUNTER(&pVCpu->em.s.StatNEMExecuteCalled,   "/PROF/CPU%u/EM/NEMExecuteCalled",  "Number of times enmR3NEMExecute is called.");
  • trunk/src/VBox/VMM/VMMR3/EMHM.cpp

    r96407 r96894  
    363363    *pfFFDone = false;
    364364
    365     STAM_COUNTER_INC(&pVCpu->em.s.StatHMExecuteCalled);
     365    STAM_REL_COUNTER_INC(&pVCpu->em.s.StatHMExecuteCalled);
    366366
    367367    /*
     
    425425        if (RT_LIKELY(emR3IsExecutionAllowed(pVM, pVCpu)))
    426426        {
    427             STAM_PROFILE_START(&pVCpu->em.s.StatHMExec, x);
     427            STAM_REL_PROFILE_START(&pVCpu->em.s.StatHMExec, x);
    428428            rc = VMMR3HmRunGC(pVM, pVCpu);
    429             STAM_PROFILE_STOP(&pVCpu->em.s.StatHMExec, x);
     429            STAM_REL_PROFILE_STOP(&pVCpu->em.s.StatHMExec, x);
    430430        }
    431431        else
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