|
|
@ -16,10 +16,10 @@ module.exports = function profiler (options) {
|
|
|
|
profile: enabled
|
|
|
|
profile: enabled
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
req.profiler.start(prefix);
|
|
|
|
req.profiler.start([prefix, 'response'].join('.'));
|
|
|
|
|
|
|
|
|
|
|
|
res.on('finish', () => {
|
|
|
|
res.on('finish', () => {
|
|
|
|
req.profiler.done('response');
|
|
|
|
req.profiler.end();
|
|
|
|
logger.info({ stats: req.profiler.toJSON() });
|
|
|
|
logger.info({ stats: req.profiler.toJSON() });
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|