From 60b2ade455daed584ffe9e84ae5b00539e56a205 Mon Sep 17 00:00:00 2001
From: Dan Janosik <dan@47.io>
Date: Wed, 27 Feb 2019 12:00:20 -0500
Subject: [PATCH] log heapdiff, trying to track down high mem actions

---
 app.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app.js b/app.js
index a5f9525..9f4f846 100755
--- a/app.js
+++ b/app.js
@@ -521,6 +521,8 @@ app.use(function(req, res, next) {
 	var time = Date.now() - req.startTime;
 	var memdiff = process.memoryUsage().heapUsed - req.startMem;
 
+	console.log(`Heapdiff: path=${req.path}, heapdiff=${memdiff}`);
+
 	if (global.influxdb) {
 		var points = [];
 		points.push({