- Method gc_status
Get statistics from the garbage collector.
A mapping with the following content will be returned:
Number of arrays, mappings, multisets, objects and programs.
Number of memory allocations since the last gc run.
Threshold for "num_allocs" when another automatic gc run is scheduled.
Estimation of the current amount of garbage.
Decaying average over the number of allocated objects between gc runs.
Decaying average over the number of freed objects in each gc run.
Garbage ratio in the last gc run.
Decaying average over the interval between gc runs, measured in real time nanoseconds.
Decaying average over the length of the gc runs, measured in real time nanoseconds.
The garbage accumulation goal that the gc aimed for when setting "alloc_threshold" in the last run. The value is either "garbage_ratio_low", "garbage_ratio_high" or "garbage_max_interval". The first two correspond to the gc parameters with the same names in Pike.gc_parameters, and the last is the minimum gc time limit specified through the "min_gc_time_ratio" parameter to Pike.gc_parameters.
Time when the garbage-collector last ran.
The total amount of CPU time that has been consumed in implicit GC runs, in nanoseconds. 0 on systems where Pike lacks support for CPU time measurement.
The total amount of real time that has been spent in implicit GC runs, in nanoseconds.
- See also