Timings are available via the built-in predicates cputime/1nd statistics/2 To obtain the CPU time consumption of a (succeeding) goal, use the scheme
cputime(StartTime), my_goal, TimeUsed is cputime-StartTime, printf("Goal took %.2f seconds%n", [TimeUsed]).
The statistics/2 and statistics/0 commands can also be used to obtain memory usage information. The memory areas used by ECLiPSe are:
Automatic garbage collection is done on the global and trail stack, and on the dictionary. Garbage collection parameters can be set using set_flag/2 and an explicit collection can be requested using garbage_collect/0.