Extracted from Pike v7.4 release 117 at 2004-11-02.
pike.ida.liu.se
[Top]
predef::
Debug

Method Debug.gc_status()


Method gc_status

mapping(string:int|float) Debug.gc_status()

Description

Get statistics from the garbage collector.

Returns

A mapping with the following content will be returned:

"num_objects" : int

Number of objects.

"num_allocs" : int

Number of memory allocations.

"alloc_threshold" : int

Threshold where the garbage-collector starts.

"objects_alloced" : int

Number of allocated objects.

"objects_freed" : int

Number of freed objects.

"last_gc" : int

Time when the garbage-collector last ran.

"projected_garbage" : float

Heuristic for the amount of garbage in the system.


See also

gc()