pike.hubbe.net

[Top]
previousrows() search()next

Method rusage()


Method rusage

array(int) rusage()

Description

Return resource usage.

Returns

Returns an array of ints describing how much resources the interpreter process has used so far. This array will have at least 29 elements, of which those values not available on this system will be zero.

The elements are as follows:

Array
int user_time

Time in seconds spent in user code.

int system_time

Time in seconds spent in system calls.

int maxrss

Maximum resident size.

int ixrss

?

int idrss

Integral resident size.

int isrss

?

int minor_page_faults

Minor page faults (TLB misses).

int major_page_faults

Major page faults (paging required).

int swaps

Number of full swaps.

int block_input_op

Number of block input operations.

int block_output_op

Number of block output operations.

int messages_sent

Number of messsages sent.

int messages_received

Number of messsages received.

int signals_received

Number of signals received.

int voluntary_context_switches

Number of voluntary context switches.

int involuntary_context_switches

Number of preemptions.

int sysc

Number of system calls.

int ioch

?

int rtime

?

int ttime

?

int tftime

?

int dftime

?

int kftime

?

int ltime

?

int slptime

?

int wtime

?

int stoptime

?

int brksize

Heap size.

int stksize

Stack size.


The values will not be further explained here; read your system manual for more information.

Note

All values may not be present on all systems.

See also

time


Extracted from Pike v7.3 release 11 at 2001-11-03.