How to track total memory usage of Julia process over time

Hm, it works for me with Julia v1.8.3 on Linux and macOS. Which OS and Julia version are you using?