Measure top memory consumption (linux program) -
how can measure top (the maximum) memory usage of programm?
it lot of malloc/free, , run rather fast, can't see max memory in top.
i want smth time
utility:
$ time ./program real xx sec user xx sec sys xx sec
and
$ mem_report ./program max memory used xx mb shared mem xx mb
the time
call shell. if call /usr/bin/time
, program, knowledge of resident memory usage. note may not count memory-mapped files, shared memory , other details may need.
Comments
Post a Comment