1.0.1 • Published 7 years ago
@tiaanduplessis/mem-monitor v1.0.1
About
A silly little logging utility to show the memory usage of a process. Inspired by this excellent post.
Install
$ npm install @tiaanduplessis/mem-monitor
# OR
$ yarn add @tiaanduplessis/mem-monitor
Usage
require('mem-monitor')()
This will log the info to your console:
You can optionally specifiy the interval at which the stats should update (defaults to 3000ms).
Contributing
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
License
Licensed under the MIT License.