Ouptut memory usage

This commit is contained in:
Jonathan Cremin 2015-08-11 21:54:55 +01:00
parent 05a6f5ca06
commit eaba18d6f5
4 changed files with 27 additions and 18 deletions

View file

@ -151,6 +151,9 @@ if (!module.parent) {
app.listen(process.env.PORT || 4042, function() {
debug('Koa HTTP server listening on port ' + (process.env.PORT || 4042));
});
setInterval(function() {
debug('%sMB', process.memoryUsage().rss / 1024 / 1024);
}, 10000);
}
export default app;