|
|
Warp wrote:
>
> Now, what I would also like to have is a similar utility or built-in
> command which tells be the peak memory usage of a program. I want to know,
> for example, if an optimization I made in a program really saved a relevant
> amount of memory or not. Sounds rather simple, doesn't it?
>
> Well, to my amazement there doesn't seem to be any such utility in
> existence for unix or linux in particular.
>
> There are tons of ways of seeing how much a program is *currently*
> taking. For example, you can use utilities like "top", "pmap", "vmstat"
> and "ps" for this purpose. They all can tell how much memory a program
> is taking.
>
I believe that in the proc directory you can dig down to get to the
actual process information.
I would check to see if there is a 'file' for the specific process that
reports the current memory usage.
I know that it is these files that ps uses for its reporting.
Just a thought on a direction that could give you what you are after.
Tom
Post a reply to this message
|
|