项目作者: tiaanduplessis

项目描述 :
Get memory usage stats for a process
高级语言: JavaScript
项目地址: git://github.com/tiaanduplessis/mem-monitor.git
创建时间: 2017-07-20T09:15:15Z
项目社区:https://github.com/tiaanduplessis/mem-monitor

开源协议:MIT License

下载


mem-monitor


Get memory usage stats for a process










Built with ❤︎ by tiaanduplessis and contributors

Table of Contents


Table of Contents
  • About

  • Install

  • Usage

  • Contribute

  • License

  • About

    A silly little logging utility to show the memory usage of a process. Inspired by this excellent post.

    Install

    1. $ npm install @tiaanduplessis/mem-monitor
    2. # OR
    3. $ yarn add @tiaanduplessis/mem-monitor

    Usage

    1. require('mem-monitor')()

    This will log the info to your console:

    example image

    You can optionally specifiy the interval at which the stats should update (defaults to 3000ms).

    Contributing

    Contributions are welcome!

    1. Fork it.
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    Or open up a issue.

    License

    Licensed under the MIT License.