SUMMARY-RESOURCE-UTILIZATION (CPU-TIME SYS-TIME DEVICE-I/O PAGING-I/O JOB-ORIGIN &KEY (STREAM T))
DO: Reports resource utilisaty summary. CPU-TIME: CPU time used, in seconds. SYS-TIME: System time used, in seconds. DEVICE-I/O: Number of Disk I/O. PAGING-I/O: Number of Swap I/O. JOB-ORIGIN: Label of the originator of the job. STREAM: Output stream (the default T means *standard-output*).
RETURN: An A-list containing the data from /proc/cpuinfo.
RETURN: A short description of the CPU.
RETURN: The number of disk I/O collected by (DISK-STATISTICS).
DISK-STATISTICS (&OPTIONAL DISK)
RETURN: Statistics from the DISK usage, obtained from /proc/diskstats.
PROCESS-STATUS (&OPTIONAL (PID self))
PID: Normally it's a small integer, pid_t number. But for /proc/, we can also use ''self'', as in '/proc/self/stat'. RETURN: The status of the specified process.
READ-PARENTHESIZED-STRING (&OPTIONAL (STREAM T) (EOF-ERROR-P T) (EOF-VALUE NIL) (RECURSIVE-P NIL))
DO: Skip spaces, and read a string in parentheses (like in Postscript). RETURN: The string read (without the external parentheses), or the EOF-VALUE if EOF occured and EOF-ERROR-P is NIL. NIL is returned if the next non whitespace character is not a left parenthesis. NOTE: Parentheses inside the string must be escaped by unless balanced.
REPORTING-SRU ((&KEY (JOB-ORIGIN '(SHORT-SITE-NAME)) (STREAM T) (REPORT-TO NIL REPORT-TO-P)) &BODY BODY)
DO: Execute the BODY collecting resource usage statistics, and finally reporting them. JOB-ORIGIN: Label of the originator of the job; defaults to (SHORT-SITE-NAME). STREAM: Output stream (the default T means *standard-output*). REPORT-TO: If provided, it's a function with the same signature as SUMMARY-RESOURCE-UTILIZATION, ie.: (cpu-time sys-time device-i/o paging-i/o job-origin &key (stream t)) which is called to report the collected statistics. The default is SUMMARY-RESOURCE-UTILIZATION.
The JIFFY value of the Linux kernel (1/CONFIG_HZ)