nodejs6.10/run/awslambda-mock.js
function(invokeId, errType, resultStr) {
    if (!invoked) return
    var diffMs = hrTimeMs(process.hrtime(start))
    var billedMs = Math.min(100 * (Math.floor(diffMs / 100) + 1), TIMEOUT * 1000)
    systemLog('END RequestId: ' + invokeId)
    systemLog([
      'REPORT RequestId: ' + invokeId,
      'Duration: ' + diffMs.toFixed(2) + ' ms',
      'Billed Duration: ' + billedMs + ' ms',
      'Memory Size: ' + MEM_SIZE + ' MB',
      'Max Memory Used: ' + Math.round(process.memoryUsage().rss / (1024 * 1024)) + ' MB',
      '',
    ].join('\t'))

    var exitCode = errored || errType ? 1 : 0
    if (typeof resultStr === 'string') {
      handleResult(resultStr, function() { process.exit(exitCode) })
    } else {
      process.exit(exitCode)
    }
  }
function(invokeId, errType, resultStr) {
    if (!invoked) return
    var diffMs = hrTimeMs(process.hrtime(start))
    var billedMs = Math.min(100 * (Math.floor(diffMs / 100) + 1), TIMEOUT * 1000)
    systemLog('END RequestId: ' + invokeId)
    systemLog([
      'REPORT RequestId: ' + invokeId,
      'Duration: ' + diffMs.toFixed(2) + ' ms',
      'Billed Duration: ' + billedMs + ' ms',
      'Memory Size: ' + MEM_SIZE + ' MB',
      'Max Memory Used: ' + Math.round(process.memoryUsage().rss / (1024 * 1024)) + ' MB',
      '',
    ].join('\t'))

    var exitCode = errored || errType ? 1 : 0
    if (typeof resultStr === 'string') {
      handleResult(resultStr, function() { process.exit(exitCode) })
    } else {
      process.exit(exitCode)
    }
  }
function ( invokeId , errType , resultStr ) { if ( ! invoked ) return var diffMs = hrTimeMs ( process . hrtime ( start ) ) var billedMs = Math . min ( 100 * ( Math . floor ( diffMs / 100 ) + 1 ) , TIMEOUT * 1000 ) systemLog ( 'END RequestId: ' + invokeId ) systemLog ( [ 'REPORT RequestId: ' + invokeId , 'Duration: ' + diffMs . toFixed ( 2 ) + ' ms' , 'Billed Duration: ' + billedMs + ' ms' , 'Memory Size: ' + MEM_SIZE + ' MB' , 'Max Memory Used: ' + Math . round ( process . memoryUsage ( ) . rss / ( 1024 * 1024 ) ) + ' MB' , '' , ] . join ( '\t' ) ) var exitCode = errored || errType ? 1 : 0 if ( typeof resultStr === 'string' ) { handleResult ( resultStr , function ( ) { process . exit ( exitCode ) } ) } else { process . exit ( exitCode ) } }
eslint-disable-line no-unused-vars
eslint - disable - line no - unused - vars