module.exports = function timeoutLimits (metadataBackend) {
    return function timeoutLimitsMiddleware (req, res, next) {
        const { user, authenticated } = res.locals;

        metadataBackend.getUserTimeoutRenderLimits(user, function (err, timeoutRenderLimit) {
            if (req.profiler) {
                req.profiler.done('getUserTimeoutLimits');
            }

            if (err) {
                return next(err);
            }

            const userLimits = {
                timeout: authenticated ? timeoutRenderLimit.render : timeoutRenderLimit.renderPublic
            };

            res.locals.userLimits = userLimits;

            next();
        });
    };
};

module.exports = function timeoutLimits (metadataBackend) {
    return function timeoutLimitsMiddleware (req, res, next) {
        const { user, authenticated } = res.locals;

        metadataBackend.getUserTimeoutRenderLimits(user, function (err, timeoutRenderLimit) {
            if (err) {
                return next(err);
            }

            const userLimits = {
                timeout: authenticated ? timeoutRenderLimit.render : timeoutRenderLimit.renderPublic
            };

            res.locals.userLimits = userLimits;

            next();
        });
    };
};

--- 
+++ 
@@ -3,6 +3,10 @@
         const { user, authenticated } = res.locals;
 
         metadataBackend.getUserTimeoutRenderLimits(user, function (err, timeoutRenderLimit) {
+            if (req.profiler) {
+                req.profiler.done('getUserTimeoutLimits');
+            }
+
             if (err) {
                 return next(err);
             }
Add profile to user limit middleware
