[ library(ic_kernel) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

ic_stat_register_event(++Event, ++Description)

Registers a new stats event to be collected
Event
The short name of the event
Description
The long name of the event

Description

When a program wishes to record events of interest throughout its runtime it can do so by first:

Then by placing calles to ic_event/1 throughout its code.
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.

See Also

ic_stat / 1, ic_stat_get / 1