REBOL Programming/stats

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

STATS /pools /types /series /frames /recycle /evals /clear 

DESCRIPTION:[edit]

System statistics. Default is to return total memory used.

STATS is a native value.

REFINEMENTS[edit]

  • /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]

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"
]