VirtualBox

Changeset 708 in vbox for trunk


Ignore:
Timestamp:
Feb 6, 2007 2:15:26 PM (18 years ago)
Author:
vboxsync
Message:

Profile MMIO as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAll.cpp

    r706 r708  
    10411041         * Perform the read and deal with the result.
    10421042         */
     1043#ifdef VBOX_WITH_STATISTICS
     1044        if (pStats)
     1045            STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfRead), a);
     1046#endif
    10431047        int rc = pRange->pfnReadCallback(pRange->pDevIns, pRange->pvUser, GCPhys, pu32Value, cbValue);
    10441048#ifdef VBOX_WITH_STATISTICS
     1049        if (pStats)
     1050            STAM_PROFILE_ADV_STOP(&pStats->CTXALLSUFF(ProfRead), a);
    10451051        if (pStats && rc != VINF_IOM_HC_MMIO_READ)
    10461052            STAM_COUNTER_INC(&pStats->CTXALLSUFF(Read));
     
    11371143#endif /* !IN_RING3 */
    11381144    {
     1145#ifdef VBOX_WITH_STATISTICS
     1146        if (pStats)
     1147            STAM_PROFILE_ADV_START(&pStats->CTXALLSUFF(ProfWrite), a);
     1148#endif
    11391149        int rc = pRange->pfnWriteCallback(pRange->pDevIns, pRange->pvUser, GCPhys, &u32Value, cbValue);
    11401150#ifdef VBOX_WITH_STATISTICS
     1151        if (pStats)
     1152            STAM_PROFILE_ADV_STOP(&pStats->CTXALLSUFF(ProfWrite), a);
    11411153        if (pStats && rc != VINF_IOM_HC_MMIO_WRITE)
    11421154            STAM_COUNTER_INC(&pStats->CTXALLSUFF(Write));
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