Changeset 6609 in vbox
- Timestamp:
- Jan 30, 2008 3:21:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r6331 r6609 1330 1330 STAM_PROFILE_ADV_STOP(&s->StatReads, r); 1331 1331 1332 STAM_ COUNTER_ADD(&s->StatBytesRead, cSectors * 512);1332 STAM_REL_COUNTER_ADD(&s->StatBytesRead, cSectors * 512); 1333 1333 1334 1334 STAM_PROFILE_START(&pCtl->StatLockWait, a); … … 1352 1352 STAM_PROFILE_ADV_STOP(&s->StatWrites, w); 1353 1353 1354 STAM_ COUNTER_ADD(&s->StatBytesWritten, cSectors * 512);1354 STAM_REL_COUNTER_ADD(&s->StatBytesWritten, cSectors * 512); 1355 1355 1356 1356 STAM_PROFILE_START(&pCtl->StatLockWait, a); … … 1679 1679 { 1680 1680 s->Led.Actual.s.fReading = 0; 1681 STAM_ COUNTER_ADD(&s->StatBytesRead, s->cbATAPISector * cSectors);1681 STAM_REL_COUNTER_ADD(&s->StatBytesRead, s->cbATAPISector * cSectors); 1682 1682 1683 1683 /* The initial buffer end value has been set up based on the total … … 1827 1827 { 1828 1828 s->Led.Actual.s.fReading = 0; 1829 STAM_ COUNTER_ADD(&s->StatBytesRead, cbTransfer);1829 STAM_REL_COUNTER_ADD(&s->StatBytesRead, cbTransfer); 1830 1830 } 1831 1831 else 1832 1832 { 1833 1833 s->Led.Actual.s.fWriting = 0; 1834 STAM_ COUNTER_ADD(&s->StatBytesWritten, cbTransfer);1834 STAM_REL_COUNTER_ADD(&s->StatBytesWritten, cbTransfer); 1835 1835 } 1836 1836 } … … 6000 6000 #ifdef VBOX_WITH_STATISTICS /** @todo release too. */ 6001 6001 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatReads, STAMTYPE_PROFILE_ADV, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling of the read operations.", "/Devices/ATA%d/Unit%d/Reads", i, j); 6002 #endif 6002 6003 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatBytesRead, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data read.", "/Devices/ATA%d/Unit%d/ReadBytes", i, j); 6004 #ifdef VBOX_WITH_STATISTICS 6003 6005 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatWrites, STAMTYPE_PROFILE_ADV, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling of the write operations.","/Devices/ATA%d/Unit%d/Writes", i, j); 6006 #endif 6004 6007 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatBytesWritten, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data written.", "/Devices/ATA%d/Unit%d/WrittenBytes", i, j); 6008 #ifdef VBOX_WITH_STATISTICS 6005 6009 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatFlushes, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling of the flush operations.","/Devices/ATA%d/Unit%d/Flushes", i, j); 6006 6010 #endif
Note:
See TracChangeset
for help on using the changeset viewer.