index.js
function(name, args) {
    var callInstance = {name: name};
    handlers.beforeFunc({name: name}, null, args, callInstance);
    return callInstance;
  }
function(name, args) {
    var callInstance = {name: name};
    handlers.beforeFunc({name: name}, null, args, callInstance);
    return callInstance;
  }
function ( name , args ) { var callInstance = { name : name } ; handlers . beforeFunc ( { name : name } , null , args , callInstance ) ; return callInstance ; }
Manually call at the beginning of a certain operation you want to measure

@param {string} name this will be the main identifier in the statistics produced
@param {array} args arguments of arguments
@returns {{}} the callInstance object, you must pass this to the matching end function
Manually call at the beginning of a certain operation you want to measure