bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using time-1.7 to monitor memory?


From: Alfred M. Szmidt
Subject: Re: using time-1.7 to monitor memory?
Date: 24 Jul 2002 19:25:41 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Marty Leisner" <address@hidden> writes:
> Seems linux and solaris don't return much information in the getrusage
> fields...

What you probably mean is GNU/Linux right?

> This information is in the proc file system, is there a way to get
> the information?  Any extensions onto gnu time?

I am confused if you are talking about GNU time or about the time
builtin for bash? What does `time --version' report?

This is from GNU time:
$ /bin/time echo "Hello world"
Hello world
0.00user 0.00system 0:00.01elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (101major+14minor)pagefaults 0swaps
$ /bin/time --version
GNU time 1.7

And this is from the GNU bash builtin:
$ time echo "Hello world"
Hello world

real    0m0.000s
user    0m0.000s
sys     0m0.000s
$ time --version
bash: --version: command not found

real    0m0.010s
user    0m0.000s
sys     0m0.000s

/proc is terribly unportable, each system has its own flavour of it.
GNU tools are meant to be very portable.

On an different note, maybe GNU Bash should use GNU time if it finds
it?  That would be nice.

Cheers,
-- 
Alfred M. Szmidt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]