Re: Easy way to determine how much memory a program used?
On 9/15/05, Adam Funk <firstname.lastname@example.org> wrote:
> and what about "free -m" ??
> it gives output like this
> ~:$ free -m
885 583 302 0
> -/+ buffers/cache: 204 680
> perhaps it may be useful for you : )
Only if I run it repeatedly (or use top) and watch it closely while the
program I'm testing is running.
I was hoping for something I could run in a batch job to get the maximum
memory use after the fact.
perhaps you could use top in batch mode: top -b and pipe the ouput to a file for analysis.