memlog.icn: Procedure to log memory usage

procedure memlog:          log memory usage

link memlog
August 14, 1996; Gregg M. Townsend
This file is in the public domain.

memlog(f) writes a message to file f recording the current memory
usage in the string and block regions.  For each, three figures are
written:  amount in use, amount reserved, and number of collections.

memlog does not perturb the figures: it requires no allocation itself.
f defaults to &output.  memlog() returns the total current usage.

Source code | Program Library Page | Icon Home Page