PDA

View Full Version : process information, similar to time but more info


slavik
August 26th, 2007, 01:20 AM
was wondering if anyone know of something like time but that could also display maximum memory usage and such. like time but with memory.

does valgrind do this?

Wybiral
August 26th, 2007, 01:52 AM
Valgrind is great for finding leaking, but simple "gprof" is good for profiling most Linux Code.

I constantly use the two together when needed.

slavik
August 26th, 2007, 02:49 AM
I am looking for something that will work for interpreted code (shell scripts, perl, python, etc.) gprof works on compiled stuff (with -g) if I am correct.

Compyx
August 26th, 2007, 03:26 AM
A quick google search for "perl profiling" and "python profiling" came up with these links:

Devel:: DProf (http://search.cpan.org/~ilyaz/DProf-19990108/DProf.pm) (the space after the :: shouldn't be there, but without it I got a smiley)
http://docs.python.org/lib/profile.html

slavik
August 26th, 2007, 11:55 AM
but I am looking for something that works the same way that time does, except also gather max memory usage.