jstests/libs/profiler.js
/**
 * Throws an assertion if the profiler does not contain exactly one entry matching "filter".
 * Optional arguments "errorMsgFilter" and "errorMsgProj" limit profiler output if this asserts.
 */
Throws an assertion if the profiler does not contain exactly one entry matching "filter".
Optional arguments "errorMsgFilter" and "errorMsgProj" limit profiler output if this asserts.
Throws an assertion if the profiler does not contain exactly one entry matching " filter " . Optional arguments " errorMsgFilter " and " errorMsgProj " limit profiler output if this asserts .
function profilerHasSingleMatchingEntryOrThrow({profileDB, filter, errorMsgFilter, errorMsgProj}) {
    profilerHasNumMatchingEntriesOrThrow({
        profileDB: profileDB,
        filter: filter,
        numExpectedMatches: 1,
        errorMsgFilter: errorMsgFilter,
        errorMsgProj: errorMsgProj
    });
}
function profilerHasSingleMatchingEntryOrThrow ( { profileDB , filter , errorMsgFilter , errorMsgProj } ) { profilerHasNumMatchingEntriesOrThrow ( { profileDB : profileDB , filter : filter , numExpectedMatches : 1 , errorMsgFilter : errorMsgFilter , errorMsgProj : errorMsgProj } ) ; }
Throws an assertion if the profiler does not contain exactly one entry matching "filter".
Throws an assertion if the profiler does not contain exactly one entry matching " filter " .