Changeset 80251 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Aug 13, 2019 12:53:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/storage/IoPerf.cpp
r80223 r80251 619 619 } 620 620 621 RTTestISub(ioPerfJobTestStringify(pJob->enmTest));622 621 pJob->tsStart = RTTimeNanoTS(); 623 622 return rc; … … 802 801 static void ioPerfJobStats(PIOPERFJOB pJob) 803 802 { 803 const char *pszTest = ioPerfJobTestStringify(pJob->enmTest); 804 804 uint64_t nsJobRuntime = pJob->tsFinish - pJob->tsStart; 805 RTTestIValueF(nsJobRuntime, RTTESTUNIT_NS, " Job/%RU32/Runtime", pJob->idJob);805 RTTestIValueF(nsJobRuntime, RTTESTUNIT_NS, "%s/Job/%RU32/Runtime", pszTest, pJob->idJob); 806 806 807 807 uint64_t *paReqRuntimeNs = (uint64_t *)RTMemAllocZ(pJob->cReqStats * sizeof(uint64_t)); … … 817 817 /* Get average bandwidth for the job. */ 818 818 RTTestIValueF((uint64_t)(pJob->cbTestSet / ((double)nsJobRuntime / RT_NS_1SEC)), 819 RTTESTUNIT_BYTES_PER_SEC, " Job/%RU32/AvgBandwidth", pJob->idJob);819 RTTESTUNIT_BYTES_PER_SEC, "%s/Job/%RU32/AvgBandwidth", pszTest, pJob->idJob); 820 820 821 821 RTTestIValueF((uint64_t)(pJob->cReqStats / ((double)nsJobRuntime / RT_NS_1SEC)), 822 RTTESTUNIT_OCCURRENCES_PER_SEC, " Job/%RU32/AvgIops", pJob->idJob);822 RTTESTUNIT_OCCURRENCES_PER_SEC, "%s/Job/%RU32/AvgIops", pszTest, pJob->idJob); 823 823 824 824 /* Calculate the average latency for the requests. */ … … 826 826 for (uint32_t i = 0; i < pJob->cReqStats; i++) 827 827 uLatency += paReqRuntimeNs[i]; 828 RTTestIValueF(uLatency / pJob->cReqStats, RTTESTUNIT_NS, " Job/%RU32/AvgLatency", pJob->idJob);828 RTTestIValueF(uLatency / pJob->cReqStats, RTTESTUNIT_NS, "%s/Job/%RU32/AvgLatency", pszTest, pJob->idJob); 829 829 830 830 RTMemFree(paReqRuntimeNs);
Note:
See TracChangeset
for help on using the changeset viewer.