Skip to content

Instantly share code, notes, and snippets.

@lakshmankashyap
Last active February 14, 2018 19:29
Show Gist options
  • Select an option

  • Save lakshmankashyap/1b689a57c46cba0276a880ae225fee9a to your computer and use it in GitHub Desktop.

Select an option

Save lakshmankashyap/1b689a57c46cba0276a880ae225fee9a to your computer and use it in GitHub Desktop.
Et quis nulla sed nulla qui
===========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