Last active
February 14, 2018 19:29
-
-
Save lakshmankashyap/1b689a57c46cba0276a880ae225fee9a to your computer and use it in GitHub Desktop.
Et quis nulla sed nulla qui
This file contains hidden or 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
| ===========memory use ============== | |
| process.memoryUsage() | |
| const used = process.memoryUsage().heapUsed / 1024 / 1024; | |
| sails.log(`The script uses approximately ${Math.round(used * 100) / 100} MB`); | |
| -L <a href="https://www.dynatrace.com/news/blog/understanding-garbage-collection-and-hunting-memory-leaks-in-node-js/">Link</a> | |
| ===================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment