Jump to content

Rebol Programming/stats

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
STATS /pools /types /series /frames /recycle /evals /clear 

DESCRIPTION:

[edit | edit source]

System statistics. Default is to return total memory used.

STATS is a native value.

REFINEMENTS

[edit | edit source]
  • /pools -- Returns: width units free-units units-per-alloc segments mem-in-use
  • /types -- Returns: Datatype count
  • /series -- Returns: total blocks strings other avail free expansions
  • /frames -- Returns: total used unused free values-total
  • /recycle -- Returns: count series-total series-last frames-total frames-last ballast
  • /evals -- Returns: values functions blocks
  • /clear -- Clears the evals counters

SOURCE CODE

[edit | edit source]
stats: native[
    {System statistics.  Default is to return total memory used.} 
    /pools {Returns: width units free-units units-per-alloc segments mem-in-use} 
    /types "Returns: Datatype count" 
    /series {Returns: total blocks strings other avail free expansions} 
    /frames "Returns: total used unused free values-total" 
    /recycle {Returns: count series-total series-last frames-total frames-last ballast} 
    /evals "Returns: values functions blocks" 
    /clear "Clears the evals counters"
]