This page is for collecting tools (probably mainly scripts) that are useful for measuring how much memory is consumed by a certain algorithm. The reason these are not on the [Compact data storage] page (where many of them are used) is that Tcl itself does not by default provide any way in which this can be measured, and hence one must instead rely on various platform-dependent tricks. There is of course the [memory] command, and the commands below try to make use of it when it is available, but in practice it usually isn't. ---- The '''growth''' procedure Idea: Evaluate a couple of scripts (sequences of commands) and measure the size of the shell before, after, and in between every pair of them. To avoid errors caused by having made other measurements previously, the scripts are evaluated in a shell which constitutes a completely different process and which is terminated when all the scripts have been evaluated. Syntax: growth