Changeset 6652 in vbox
- Timestamp:
- Jan 31, 2008 11:49:09 AM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r6548 r6652 239 239 bool afAlignment[1]; 240 240 uint32_t u32LinkSpeed; 241 242 STAMCOUNTER StatReceiveBytes; 243 STAMCOUNTER StatTransmitBytes; 241 244 242 245 #ifdef VBOX_WITH_STATISTICS … … 1743 1746 rmd.rmd1.bam = !CSR_PROM(pData) && is_bcast; 1744 1747 rmd.rmd2.mcnt = pkt_size; 1748 1749 STAM_REL_COUNTER_ADD(&pData->StatReceiveBytes, pkt_size); 1745 1750 } 1746 1751 else … … 1752 1757 rmd.rmd1.err = 1; 1753 1758 } 1759 1754 1760 /* write back, clear the own bit */ 1755 1761 pcnetRmdStorePassHost(pData, &rmd, PHYSADDR(pData, crda)); … … 1879 1885 pData->Led.Asserted.s.fWriting = pData->Led.Actual.s.fWriting = 1; 1880 1886 pData->pDrv->pfnSend(pData->pDrv, pData->SendFrame.pvBuf, pData->SendFrame.cb); 1887 STAM_REL_COUNTER_ADD(&pData->StatTransmitBytes, pData->SendFrame.cb); 1881 1888 pData->Led.Actual.s.fWriting = 0; 1882 1889 STAM_PROFILE_ADV_STOP(&pData->StatTransmitSend, a); … … 4491 4498 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTimer, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet Timer", "/Devices/PCNet%d/Timer", iInstance); 4492 4499 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatReceive, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet receive", "/Devices/PCNet%d/Receive", iInstance); 4500 #endif 4501 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatReceiveBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data received", "/Devices/PCNet%d/ReceiveBytes", iInstance); 4502 #ifdef VBOX_WITH_STATISTICS 4493 4503 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmit, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet transmit in HC", "/Devices/PCNet%d/Transmit/Total", iInstance); 4494 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmitSend, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in HC", "/Devices/PCNet%d/Transmit/Send", iInstance); 4504 #endif 4505 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmitBytes, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data transmitted", "/Devices/PCNet%d/TransmitBytes", iInstance); 4506 #ifdef VBOX_WITH_STATISTICS 4507 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTransmitSend, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet send transmit in HC","/Devices/PCNet%d/Transmit/Send", iInstance); 4495 4508 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollGC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in GC", "/Devices/PCNet%d/TdtePollGC", iInstance); 4496 4509 PDMDevHlpSTAMRegisterF(pDevIns, &pData->StatTdtePollHC, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling PCNet TdtePoll in HC", "/Devices/PCNet%d/TdtePollHC", iInstance); -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMInformationDlg.ui.h
r6630 r6652 180 180 mNamesMap ["/Devices/ATA1/Unit1/ReadBytes"] = tr ("Amount of data read"); 181 181 mNamesMap ["/Devices/ATA1/Unit1/WrittenBytes"] = tr ("Amount of data written"); 182 183 mNamesMap ["/Devices/PCNet0/TransmitBytes"] = tr ("Amount of bytes transmitted"); 184 mNamesMap ["/Devices/PCNet0/ReceiveBytes"] = tr ("Amount of bytes received"); 185 mNamesMap ["/Devices/PCNet1/TransmitBytes"] = tr ("Amount of bytes transmitted"); 186 mNamesMap ["/Devices/PCNet1/ReceiveBytes"] = tr ("Amount of bytes received"); 182 187 183 188 /* Statistics page update. */ … … 426 431 427 432 /* Network Adapters Statistics. Counters are currently missed. */ 428 // result += hdrRow.arg ("nw_16px.png").arg (tr ("DummyNetwork Adapters Statistics"));429 // result += subRow.arg (tr ("Dummy Adapter 1")).arg (tr ("DummyAdapter 2"));430 // result += composeArticle ("B", 6, 7, 14, 15);433 result += hdrRow.arg ("nw_16px.png").arg (tr ("Network Adapters Statistics")); 434 result += subRow.arg (tr ("Adapter 1")).arg (tr ("Adapter 2")); 435 result += composeArticle ("B", 16, 17, 18, 19); 431 436 432 437 /* Show full composed page. */
Note:
See TracChangeset
for help on using the changeset viewer.