Changeset 28720 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Apr 25, 2010 9:35:30 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60592
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r28715 r28720 157 157 /** Number of packets send from ring-0. */ 158 158 STAMCOUNTER StatSentR0; 159 #ifdef VBOX_WITH_STATISTICS160 /** Profiling packet transmit runs. */161 STAMPROFILE StatTransmit;162 /** Profiling packet receive runs. */163 STAMPROFILEADV StatReceive;164 159 /** The number of times we've had to wake up the xmit thread to contine the 165 160 * ring-0 job. */ … … 170 165 /** The times the xmit thread has been told to process the ring. */ 171 166 STAMCOUNTER StatXmitProcessRing; 167 #ifdef VBOX_WITH_STATISTICS 168 /** Profiling packet transmit runs. */ 169 STAMPROFILE StatTransmit; 170 /** Profiling packet receive runs. */ 171 STAMPROFILEADV StatReceive; 172 172 #endif /* VBOX_WITH_STATISTICS */ 173 173 #ifdef LOG_ENABLED … … 257 257 int rc = SUPSemEventSignal(pThis->pSupDrvSession, pThis->hXmitEvt); 258 258 AssertRC(rc); 259 STAM_ COUNTER_INC(&pThis->CTX_SUFF(StatXmitWakeup));259 STAM_REL_COUNTER_INC(&pThis->CTX_SUFF(StatXmitWakeup)); 260 260 } 261 261 return VERR_TRY_AGAIN; … … 584 584 if (ASMAtomicXchgBool(&pThis->fXmitProcessRing, false)) 585 585 { 586 STAM_ COUNTER_INC(&pThis->StatXmitProcessRing);586 STAM_REL_COUNTER_INC(&pThis->StatXmitProcessRing); 587 587 PDMCritSectEnter(&pThis->XmitLock, VERR_IGNORED); 588 588 drvIntNetProcessXmit(pThis); … … 594 594 if (ASMAtomicXchgBool(&pThis->fXmitProcessRing, false)) 595 595 { 596 STAM_ COUNTER_INC(&pThis->StatXmitProcessRing);596 STAM_REL_COUNTER_INC(&pThis->StatXmitProcessRing); 597 597 PDMCritSectEnter(&pThis->XmitLock, VERR_IGNORED); 598 598 drvIntNetProcessXmit(pThis); … … 1551 1551 PDMDrvHlpSTAMRegProfileAdv(pDrvIns, &pThis->StatReceive, "Receive", STAMUNIT_TICKS_PER_CALL, "Profiling packet receive runs."); 1552 1552 PDMDrvHlpSTAMRegProfile(pDrvIns, &pThis->StatTransmit, "Transmit", STAMUNIT_TICKS_PER_CALL, "Profiling packet transmit runs."); 1553 #endif 1553 1554 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR0, "XmitWakeup-R0", STAMUNIT_COUNT, "Xmit thread wakeups from ring-0."); 1554 1555 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitWakeupR3, "XmitWakeup-R3", STAMUNIT_COUNT, "Xmit thread wakeups from ring-3."); 1555 1556 PDMDrvHlpSTAMRegCounter(pDrvIns, &pThis->StatXmitProcessRing, "XmitProcessRing", STAMUNIT_COUNT, "Time xmit thread was told to process the ring."); 1556 #endif1557 1557 1558 1558 /*
Note:
See TracChangeset
for help on using the changeset viewer.