Sometimes we want to know how much memory space is consumed at the peak time. To obtain this kind of information, one needs to recompile the emulator with the definition of variable ToamProfile in toam.h. There is a counter for each stack and the emulator updates the counters each time an instruction is executed. To print the counters, use the predicate
print_counters
and to initialize the counters use the predicate
start_click
Neng-Fa Zhou
2012-01-03