Changeset 7058 in vbox
- Timestamp:
- Feb 20, 2008 6:29:10 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28294
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r7043 r7058 73 73 /** The maximum number of release log entries per device. */ 74 74 #define MAX_LOG_REL_ERRORS 1024 75 76 /** Temporary instrumentation for tracking down potential virtual disk 77 * write performance issues. */ 78 #undef VBOX_INSTRUMENT_DMA_WRITES 75 79 76 80 typedef struct ATADevState { … … 186 190 /* Release statistics: number of ATAPI PIO commands. */ 187 191 STAMCOUNTER StatATAPIPIO; 192 #ifdef VBOX_INSTRUMENT_DMA_WRITES 193 /* Release statistics: number of DMA sector writes and the time spent. */ 194 STAMPROFILEADV StatInstrVDWrites; 195 #endif 188 196 189 197 /** Statistics: number of read operations and the time spent reading. */ … … 1350 1358 STAM_PROFILE_ADV_START(&s->StatWrites, w); 1351 1359 s->Led.Asserted.s.fWriting = s->Led.Actual.s.fWriting = 1; 1360 #ifdef VBOX_INSTRUMENT_DMA_WRITES 1361 if (s->fDMA) 1362 STAM_PROFILE_ADV_START(&s->StatInstrVDWrites, vw);; 1363 #endif 1352 1364 rc = s->pDrvBlock->pfnWrite(s->pDrvBlock, u64Sector * 512, pvBuf, cSectors * 512); 1365 #ifdef VBOX_INSTRUMENT_DMA_WRITES 1366 if (s->fDMA) 1367 STAM_PROFILE_ADV_STOP(&s->StatInstrVDWrites, vw);; 1368 #endif 1353 1369 s->Led.Actual.s.fWriting = 0; 1354 1370 STAM_PROFILE_ADV_STOP(&s->StatWrites, w); … … 6004 6020 #endif 6005 6021 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatBytesRead, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Amount of data read.", "/Devices/ATA%d/Unit%d/ReadBytes", i, j); 6022 #ifdef VBOX_INSTRUMENT_DMA_WRITES 6023 PDMDevHlpSTAMRegisterF(pDevIns, &pIf->StatInstrVDWrites, STAMTYPE_PROFILE_ADV, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, "Profiling of the VD DMA write operations.","/Devices/ATA%d/Unit%d/InstrVDWrites", i, j); 6024 #endif 6006 6025 #ifdef VBOX_WITH_STATISTICS 6007 6026 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);
Note:
See TracChangeset
for help on using the changeset viewer.