Just released peak-mem: a lightweight CLI tool to track peak memory usage of any process. Works like time(1) but for memory monitoring. Features process tree tracking and multiple output formats.
https://blog.charmitro.gr/blog/peak-mem-a-lightweight-memory-usage-monitor/