A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
feat: log Memory usage
Christian Fei2062674a49bc
diff --git a/index.js b/index.jsindex 971f248..012b126 100644--- a/index.js+++ b/index.js@@ -13,4 +13,11 @@ if (import.meta.url.endsWith('index.js')) {main({port: +process.env.PORT || 3000})+ logMemoryUsage()+ setInterval(logMemoryUsage, 5 * 60 * 1000)+}++function logMemoryUsage () {+ const memUsage = process.memoryUsage()+ console.log(`[memory] rss: ${Math.round(memUsage.rss / 1024 / 1024)} MB, heapTotal: ${Math.round(memUsage.heapTotal / 1024 / 1024)} MB, heapUsed: ${Math.round(memUsage.heapUsed / 1024 / 1024)} MB, external: ${Math.round(memUsage.external / 1024 / 1024)} MB`)}