By using time
we can easily get the information about how long a program run. I was wondering if there is any equivalent command I can use for memory usages? Like how much memory is allocated for this process, and how much is freed after it finishes? I am aware that I can use Valgrind but it is a bit too heavy-weight for me.
Shell – Equivalent command for “time“ for memory usage
memorymonitoringprocessshell
Best Answer