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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -