Results 1 to 2 of 2
Hi any one knows if there is a command that I pass another one as parameter and it gives me the maximum memory usage of such program? I could use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-10-2012 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
Max memory usage
Hi any one knows if there is a command that I pass another one as parameter and it gives me the maximum memory usage of such program? I could use ps or vmstat to get the instantaneous time and and keep pooling, until the end of the process to see the maximum memory used by my program... but that would be imprecise and quite resource intensive.
I would like something like time, for example. I want for memory what time does for execution time, of a program (e.g $ time grep -R test *
.
Any one knows something like that, or how could I do that? And NO, I don't have the source codes
.
Best regards...
Daniel
- 05-11-2012 #2Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
OK, I am sorry for being stupid.
A colleague just pointed me out that time does that also
.
Thanks
Daniel


Reply With Quote
