Extracted from Pike v7.3 release 14 at 2002-02-15.
pike.roxen.com
[Top]

Method _gc_status()


Method _gc_status

mapping(string:int|float) _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