Created
November 21, 2017 11:39
-
-
Save geovanisouza92/61c76b7a017f65503a1d075c6644afa6 to your computer and use it in GitHub Desktop.
Simple Node.js memory stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const used = process.memoryUsage(); | |
for (let key in used) { | |
console.log(`${key} ${Math.round(used[key] / 1024 / 1024 * 100) / 100} MB`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment