"Fossies" - the Fresh Open Source Software Archive

Member "memtime-1.3/memtime.1" (21 Jan 2002, 2372 Bytes) of package /linux/misc/old/memtime-1.3.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

memtime

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
BUGS
COPYRIGHT
AUTHOR

NAME

memtime - Show the time and memory used by a command

SYNOPSIS

memtime [−t period] [−e] [−m maxkilobytes] [−t maxseconds] command [arg...]

DESCRIPTION

The memtime program invoke command with the parameters arg, wait for its completion and print an estimation of the time and memory used by command. In addition user can specify time and space limits by maxseconds and maxkilobytes to limit resources available for this process.

OPTIONS

memtime accept the following options:
−t
period

Print an estimation of the currently used resources every period seconds.

−e

Echo command and arg.

−m maxkilobytes

Memory limit for command. Implemented through RLIMIT mechanism.

−c maxcpuseconds

User time limit for command. Implemented through RLIMIT mechanism.

BUGS

The update period is only approximate.

The memory information is collected by sampling, and the precision might not be good for commands with short execution time.

COPYRIGHT

Copyright © 2000 by Johan Bengtsson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

AUTHOR

Johan Bengtsson <johanb@Update.UU.SE>

Memory and time restriction functionality added by Juhan Ernits <juhan@cc.ioc.ee> in December, 2001.