From d8e7878d2fe5d16b36cffd09423819453fdf7485 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Sat, 27 Apr 2019 13:33:26 -0400 Subject: [PATCH] simple page performance logging --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index f1b6596..0d6f268 100755 --- a/app.js +++ b/app.js @@ -19,6 +19,7 @@ var debug = require("debug"); debug.enable(process.env.DEBUG); var debugLog = debug("btcexp:app"); +var debugPerfLog = debug("btcexp:actionPerformace"); var express = require('express'); var favicon = require('serve-favicon'); @@ -533,6 +534,8 @@ app.use(function(req, res, next) { var time = Date.now() - req.startTime; var memdiff = process.memoryUsage().heapUsed - req.startMem; + debugPerfLog("Finished action '%s' in %d ms", req.path, time); + if (global.influxdb) { var points = []; points.push({