VirtualBox

Ignore:
Timestamp:
Aug 13, 2019 12:53:12 PM (5 years ago)
Author:
vboxsync
Message:

ValidationKit/IoPerf: Collapse the tests into a single test when running to avoid running into to deep sub test depth errors when running the storage benchmark testcase which is already hitting the limit of 10 nested tests configured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/storage/IoPerf.cpp

    r80223 r80251  
    619619    }
    620620
    621     RTTestISub(ioPerfJobTestStringify(pJob->enmTest));
    622621    pJob->tsStart = RTTimeNanoTS();
    623622    return rc;
     
    802801static void ioPerfJobStats(PIOPERFJOB pJob)
    803802{
     803    const char *pszTest = ioPerfJobTestStringify(pJob->enmTest);
    804804    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);
    806806
    807807    uint64_t *paReqRuntimeNs = (uint64_t *)RTMemAllocZ(pJob->cReqStats * sizeof(uint64_t));
     
    817817        /* Get average bandwidth for the job. */
    818818        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);
    820820
    821821        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);
    823823
    824824        /* Calculate the average latency for the requests. */
     
    826826        for (uint32_t i = 0; i < pJob->cReqStats; i++)
    827827            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);
    829829
    830830        RTMemFree(paReqRuntimeNs);
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