memusgはプロセスのメモリ使用量をlinuxのタイムコマンドのように計測するツール。
timeと同様にプログラムの前に付けて使用する。
インストール
Gihtub
git clone https://github.com/jhclark/memusg.git
export PATH=<path>/<to>/memusg:$PATH
実行方法
memusg sleep 2s
引用
GitHub - jhclark/memusg: A 'time'-like utility for Unix that measures peak memory usage
参考
https://telatin.github.io/bamtocov/notes/memory.html