https://github.com/jarred-sumner/maxrss
Print how much memory was used in a spawned process
https://github.com/jarred-sumner/maxrss
Last synced: about 2 months ago
JSON representation
Print how much memory was used in a spawned process
- Host: GitHub
- URL: https://github.com/jarred-sumner/maxrss
- Owner: Jarred-Sumner
- Created: 2024-01-06T09:05:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-23T11:44:00.000Z (over 1 year ago)
- Last Synced: 2025-04-17T10:58:27.010Z (about 2 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 54
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# maxrss
Print the maximum memory usage of a process.
```bash
$ bunx maxrss echo hello
hello
Peak memory usage: 1.36 MB
```If you want to control the prefix of the output, you can use the `--prefix` flag:
```bash
$ bunx maxrss --prefix="boop!" echo hello
hello
boop 1.36 MB
````--prefix` is the only flag, besides `--help`.