ztcl::gc
ztcl::gc subcommand
Gives the counts of the collector of the heap of the interpreter tree: the pauses, the time of the marks and the sweeps, the bytes of the heap, the bytes that the program allocated, and the resident set of the process. The counts of time depend on the host.
Subcommands
| Synopsis | What it does |
|---|---|
ztcl::gc stats |
A dict of the counts: collections, gc_ns, mark_ns, sweep_ns, pause_p50_ns, pause_p99_ns, pause_max_ns, heap_bytes, heap_peak, live_bytes, used_bytes, threshold, allocated, freed, alloc_rate, uptime_ns, rss, rss_peak, returned, and retained. |
ztcl::gc collect |
Runs a collection now, where the build can collect. |
ztcl::gc reset |
Starts the counts again. |
Examples
ztcl::gc resetdict get [ztcl::gc stats] collectionsgives0dict size [ztcl::gc stats]gives20
Errors
ztcl::gc nopegives the errorbad option "nope": must be collect, reset, or stats
Facts
- Capability:
meter. A new interpreter does not have this command. See Limits and capabilities. - Compute cost: one compute unit for the call, and more for the commands that it runs.
- The full page: ztcl::gc.