VirtualBox

Changeset 28720 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Apr 25, 2010 9:35:30 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60592
Message:

DrvIntNet.cpp: More release stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r28715 r28720  
    157157    /** Number of packets send from ring-0. */
    158158    STAMCOUNTER                     StatSentR0;
    159 #ifdef VBOX_WITH_STATISTICS
    160     /** Profiling packet transmit runs. */
    161     STAMPROFILE                     StatTransmit;
    162     /** Profiling packet receive runs. */
    163     STAMPROFILEADV                  StatReceive;
    164159    /** The number of times we've had to wake up the xmit thread to contine the
    165160     *  ring-0 job. */
     
    170165    /** The times the xmit thread has been told to process the ring. */
    171166    STAMCOUNTER                     StatXmitProcessRing;
     167#ifdef VBOX_WITH_STATISTICS
     168    /** Profiling packet transmit runs. */
     169    STAMPROFILE                     StatTransmit;
     170    /** Profiling packet receive runs. */
     171    STAMPROFILEADV                  StatReceive;
    172172#endif /* VBOX_WITH_STATISTICS */
    173173#ifdef LOG_ENABLED
     
    257257        int rc = SUPSemEventSignal(pThis->pSupDrvSession, pThis->hXmitEvt);
    258258        AssertRC(rc);
    259         STAM_COUNTER_INC(&pThis->CTX_SUFF(StatXmitWakeup));
     259        STAM_REL_COUNTER_INC(&pThis->CTX_SUFF(StatXmitWakeup));
    260260    }
    261261    return VERR_TRY_AGAIN;
     
    584584        if (ASMAtomicXchgBool(&pThis->fXmitProcessRing, false))
    585585        {
    586             STAM_COUNTER_INC(&pThis->StatXmitProcessRing);
     586            STAM_REL_COUNTER_INC(&pThis->StatXmitProcessRing);
    587587            PDMCritSectEnter(&pThis->XmitLock, VERR_IGNORED);
    588588            drvIntNetProcessXmit(pThis);
     
    594594        if (ASMAtomicXchgBool(&pThis->fXmitProcessRing, false))
    595595        {
    596             STAM_COUNTER_INC(&pThis->StatXmitProcessRing);
     596            STAM_REL_COUNTER_INC(&pThis->StatXmitProcessRing);
    597597            PDMCritSectEnter(&pThis->XmitLock, VERR_IGNORED);
    598598            drvIntNetProcessXmit(pThis);
     
    15511551    PDMDrvHlpSTAMRegProfileAdv(pDrvIns, &pThis->StatReceive,             "Receive",     STAMUNIT_TICKS_PER_CALL, "Profiling packet receive runs.");
    15521552    PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->StatTransmit,               "Transmit",    STAMUNIT_TICKS_PER_CALL, "Profiling packet transmit runs.");
     1553#endif
    15531554    PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR0,           "XmitWakeup-R0",        STAMUNIT_COUNT, "Xmit thread wakeups from ring-0.");
    15541555    PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR3,           "XmitWakeup-R3",        STAMUNIT_COUNT, "Xmit thread wakeups from ring-3.");
    15551556    PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitProcessRing,        "XmitProcessRing",      STAMUNIT_COUNT, "Time xmit thread was told to process the ring.");
    1556 #endif
    15571557
    15581558    /*
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