From da55f893ef3ea3c55816d36e63f11fe6509ce843 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 24 May 2021 16:27:48 -0500 Subject: more debug stuff --- build/hypixelCached.js | 6 +++++- src/hypixelCached.ts | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 50ffc3d..fcdfcf9 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -344,5 +344,9 @@ setInterval(() => { const keys = exports.basicPlayerCache.keys(); if (keys) console.log(exports.basicPlayerCache.get(keys[keys.length - 1])); - console.log(exports.basicPlayerCache.getStats()); + console.log('basicPlayerCache', exports.basicPlayerCache.getStats()); + console.log('usernameCache', exports.usernameCache.getStats()); + console.log('profileCache', exports.profileCache.getStats()); + console.log(Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10 + + 'mb'); }, 60 * 1000); diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 3896703..c14db3e 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -371,5 +371,10 @@ setInterval(() => { const keys = basicPlayerCache.keys() if (keys) console.log(basicPlayerCache.get(keys[keys.length - 1])) - console.log(basicPlayerCache.getStats()) + console.log('basicPlayerCache', basicPlayerCache.getStats()) + console.log('usernameCache', usernameCache.getStats()) + console.log('profileCache', profileCache.getStats()) + console.log( + Math.floor((process.memoryUsage().heapUsed / 1024 / 1024) * 10) / 10 + + 'mb') }, 60 * 1000) \ No newline at end of file -- cgit