wrapper = function () {
        if (ReactPerf.enableMeasure) {
          if (!measuredFunc) {
            measuredFunc = ReactPerf.storedMeasure(objName, fnName, func);
          }
          return measuredFunc.apply(this, arguments);
        }
        return func.apply(this, arguments);
      }
Use this to wrap methods you want to measure. Zero overhead in production.

@param {string} objName
@param {string} fnName
@param {function} func
@return {function}