Help - Search - Members - Calendar
Full Version: Process Memory Consumption
Linuxhelp > Support > Technical Support

I'm looking for a way to record the amount of RAM consumed by a particular program. I would love to use a utility that could be executed like the TIME command. For example:

mem <program name> > output.txt

The utility would execute the given program and record the amount of memory consumed (heap/stack/text combined or separated). Does anyone know of such a utility?

I cannot use the TIME command as it does not provide an accurate measure for memory consumption. It just details how much memory was allocated by the memory manager in Linux, which is usually a lot more than what is needed. I also cannot use a code profiler either as this will be part of an automated task, and most profilers require someone at the helm.

Thanks a lot!

This PDF file might be of some help...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.