committing a patch that adds a build option to use memory size tracking.
The runtime will run *a lot* slower with this turned on, but it will
report the total number of unique memory locations accessed during
execution like "memsize <number>" when the program terminates.