When a program wishes to record events of interest throughout its runtime it can do so by first:
ic_stat_register_event('myevent','My really important event').
foo:-
ic_event('myevent'),
bar(X).
While stats gathering is not enabled (ie. without the program explicitly calling ic_stat(on) these events are processed very efficiently, and so can be left in code without incurring any significant overhead.