VirtualBox

Changeset 6609 in vbox


Ignore:
Timestamp:
Jan 30, 2008 3:21:27 PM (17 years ago)
Author:
vboxsync
Message:

ATA: BytesRead + BytesWritten are needed for the statistics window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r6331 r6609  
    13301330    STAM_PROFILE_ADV_STOP(&s->StatReads, r);
    13311331
    1332     STAM_COUNTER_ADD(&s->StatBytesRead, cSectors * 512);
     1332    STAM_REL_COUNTER_ADD(&s->StatBytesRead, cSectors * 512);
    13331333
    13341334    STAM_PROFILE_START(&pCtl->StatLockWait, a);
     
    13521352    STAM_PROFILE_ADV_STOP(&s->StatWrites, w);
    13531353
    1354     STAM_COUNTER_ADD(&s->StatBytesWritten, cSectors * 512);
     1354    STAM_REL_COUNTER_ADD(&s->StatBytesWritten, cSectors * 512);
    13551355
    13561356    STAM_PROFILE_START(&pCtl->StatLockWait, a);
     
    16791679    {
    16801680        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);
    16821682
    16831683        /* The initial buffer end value has been set up based on the total
     
    18271827        {
    18281828            s->Led.Actual.s.fReading = 0;
    1829             STAM_COUNTER_ADD(&s->StatBytesRead, cbTransfer);
     1829            STAM_REL_COUNTER_ADD(&s->StatBytesRead, cbTransfer);
    18301830        }
    18311831        else
    18321832        {
    18331833            s->Led.Actual.s.fWriting = 0;
    1834             STAM_COUNTER_ADD(&s->StatBytesWritten, cbTransfer);
     1834            STAM_REL_COUNTER_ADD(&s->StatBytesWritten, cbTransfer);
    18351835        }
    18361836    }
     
    60006000#ifdef VBOX_WITH_STATISTICS /** @todo release too. */
    60016001            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
    60026003            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
    60036005            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
    60046007            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
    60056009            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);
    60066010#endif
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