Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 20:01:33 -0500 (CDT)
From:      "Rusty Nejdl" <rnejdl@ringofsaturn.com>
To:        "Vulpes Velox" <v.velox@vvelox.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: csh is root's shell?
Message-ID:  <61583.66.13.175.242.1097110893.squirrel@mail.ringofsaturn.com>
In-Reply-To:  <20041006180405.6a3b8407@vixen42.24-119-122-191.cpe.cableone.net>
References:  <200410060019.i960JSbq012606@bunrab.catwhisker.org> <1F92A08DB846503C2933CB0D@192.168.1.16> <20041006010051.GA53821@sirius.speicher.org> <20041006065433.GB612@loge.nixsys.be> <136a340a041006002068ffbf8d@mail.gmail.com> <20041006114235.79eb1aee@it.buh.tecnik93.com> <136a340a04100604021216f931@mail.gmail.com> <20041006180405.6a3b8407@vixen42.24-119-122-191.cpe.cableone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> How do you get the time thing working?
>
>
> Pasted this into my .cshrc, but it did not have any affect... :/
> set time=(8 "\ Time spent in user mode   (CPU seconds) : %Us\
> Time spent in kernel mode (CPU seconds) : %Ss\
> Total time                              : %Es\
> CPU utilisation (percentage)            : %P\
> Times the process was swapped           : %W\
> Times of major page faults              : %F\
> Times of minor page faults              : %R")
>
>

Run something that takes a bit of time and after it is done, it will
report that details.  In the case above, it has to run for over 8 seconds.

For example:

[tethys]:/root# cvsrun
Subject: tethys.ringofsaturn.com weekly cvsup run output
Parsing supfile "/usr/local/etc/cvsup/current-supfile"
Connecting to cvsup17.freebsd.org
Connected to cvsup17.freebsd.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection src-all/cvs
 Edit src/gnu/lib/libregex/Makefile
  Add delta 1.28.2.1 2004.10.06.23.36.20 peter
 Edit src/gnu/usr.bin/cvs/cvsbug/Makefile
  Add delta 1.19.4.1 2004.10.06.23.40.48 peter
 Edit src/gnu/usr.bin/cvs/lib/Makefile
  Add delta 1.25.2.1 2004.10.06.23.40.48 peter
 Edit src/sys/kern/kern_sig.c
  Add delta 1.289.2.2 2004.10.06.23.44.16 davidxu
 Edit src/tools/lib32/build32.sh
  Add delta 1.1.2.1 2004.10.06.23.37.35 peter
Updating collection ports-all/cvs
Shutting down connection to server
Finished successfully

Time spent in user mode   (CPU seconds) : 13.649s
Time spent in kernel mode (CPU seconds) : 8.480s
Total time                              : 1:23.92s
CPU utilisation (percentage)            : 26.3%
Times the process was swapped           : 0
Times of major page faults              : 30
Times of minor page faults              : 816
[tethys]:/root#

Rusty Nejdl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61583.66.13.175.242.1097110893.squirrel>