lib/routesHandler/lib/initializeRoutes.js
function (req, res, next) {
            if (!req.miajs.controllerDebugInfo) {
                req.miajs.controllerDebugInfo = {};
            }
            if (controller.name && controller.version) {
                req.miajs.controllerDebugInfo[controller.name + '_' + controller.version] = {'runtime': Date.now() - req.miajs.controllerStart};
            }
            next();
        }
function (req, res, next) {
            if (!req.miajs.controllerDebugInfo) {
                req.miajs.controllerDebugInfo = {};
            }
            if (controller.name && controller.version) {
                req.miajs.controllerDebugInfo[controller.name + '_' + controller.version] = {'runtime': Date.now() - req.miajs.controllerStart};
            }
            next();
        }
function ( req , res , next ) { if ( ! req . miajs . controllerDebugInfo ) { req . miajs . controllerDebugInfo = { } ; } if ( controller . name && controller . version ) { req . miajs . controllerDebugInfo [ controller . name + '_' + controller . version ] = { 'runtime' : Date . now ( ) - req . miajs . controllerStart } ; } next ( ) ; }
Measure runtime of controller
Measure runtime of controller