src/comm/client/local-client.js
/**
 * Call before starting a new test
 * @param {JSON} msg start test message
 */
Call before starting a new test
@param {JSON} msg start test message
Call before starting a new test @param { JSON } msg start test message
function beforeTest(msg) {
    results  = [];
    resultStats = [];
    invokeStats = [];
    queryStats = [];
    detailedDelayStats = [];
    txNum = 0;
    txLastNum = 0;
    if (msg.trim) {
        if (msg.txDuration) {
            trimType = 1;
        } else {
            trimType = 2;
        }
        trim = msg.trim;
    } else {
        trimType = 0;
    }
}
function beforeTest ( msg ) { results = [ ] ; resultStats = [ ] ; invokeStats = [ ] ; queryStats = [ ] ; detailedDelayStats = [ ] ; txNum = 0 ; txLastNum = 0 ; if ( msg . trim ) { if ( msg . txDuration ) { trimType = 1 ; } else { trimType = 2 ; } trim = msg . trim ; } else { trimType = 0 ; } }
Call before starting a new test
 @param {JSON} msg start test message
Call before starting a new test @param { JSON } msg start test message
// conditionally trim beginning and end results for this test run