[REBOL] Rebol/stats (was Re: Recycle)
From: larry::ecotope::com at: 14-Feb-2001 18:15
Hi Paul,
You are welcome.
>You got me interested in how you new that /recycle was part of the
system/stats path.
I highly recommend Doc Kimbel's help.r which will show you the help info for
the rebol/stats function directly.
It is at
http://rebol.dhs.org/help.r
Just put in your user.r file. It gives this:
>> help rebol/stats
USAGE:
STATS /pools /types /series /frames /recycle
DESCRIPTION:
System statistics. Default is to return total memory allocated.
STATS is a native value.
REFINEMENTS:
/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
>>
You may also want to use or study Carl's script in the REBOL library:
http://www.rebol.com/library/scripts/mem-stats.r
which use rebol/stats to give a detailed print-out.
You could also do this:
>> f: get in rebol 'stats
>> source f
f: native [
{System statistics. Default is to return total memory allocated.}
/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}
]
HTH
-Larry