Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apostrophecms/max-mem
Measure maximum memory usage of a command
https://github.com/apostrophecms/max-mem
Last synced: about 2 months ago
JSON representation
Measure maximum memory usage of a command
- Host: GitHub
- URL: https://github.com/apostrophecms/max-mem
- Owner: apostrophecms
- License: mit
- Created: 2022-10-25T11:00:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-25T11:01:17.000Z (about 2 years ago)
- Last Synced: 2024-10-31T14:12:47.708Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# max-mem
## Purpose
Measures the maximum memory usage of any command. `max-mem` checks the memory usage of the command every 100 milliseconds and reports the peak "resident set size" of the command when it exits, including any child processes. This is helpful in tracking down the cause of out-of-memory errors in Webpack builds and other expensive operations.
`max-mem` does for memory what `time` does for execution time.
## Install
```
npm install -g max-mem
```## Usage
```
max-mem npm run build[Regular output appears here]
Max memory usage: 800MB
```## Credits
`max-mem` was created to facilitate our work on [ApostropheCMS](https://apostrophecms.com).