jstests/noPassthroughWithMongod/tcmalloc.js
// Check that setParameter is available on this build. And whether tcmallocReleaseRate is.
Check that setParameter is available on this build. And whether tcmallocReleaseRate is.
Check that setParameter is available on this build . And whether tcmallocReleaseRate is .
function hasTcSetParameter() {
    const commandResult = db.adminCommand({getParameter: 1, tcmallocReleaseRate: 1});
    if (commandResult.ok)
        return true;
    else
        return false;
}
function hasTcSetParameter ( ) { const commandResult = db . adminCommand ( { getParameter : 1 , tcmallocReleaseRate : 1 } ) ; if ( commandResult . ok ) return true ; else return false ; }
Check that setParameter is available on this build.
Check that setParameter is available on this build .