From 9c3371281fe957a500d4a32530987801e2020736 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 12 Apr 2017 12:20:50 +0000 Subject: [PATCH] Memory Leak Counter --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 65da87dd..cfc7aa62 100644 --- a/index.js +++ b/index.js @@ -107,6 +107,10 @@ client.setTimeout(() => { process.exit(0); }, 14400000); +client.setInterval(() => { + console.log(`Shard ${client.shard.id} using ${process.memoryUsage().heapUsed} Bytes of Memory.`); +}, 60000); + client.on('ready', () => { console.log(`[Ready] Shard ${client.shard.id} Logged in!`); client.user.setGame(`;help | Shard ${client.shard.id}`);