![]() |
YAP 7.1.0
|
The tick profiler works by interrupting the Prolog code every so often and checking at each point the code was. More...
The tick profiler works by interrupting the Prolog code every so often and checking at each point the code was.
The profiler must be able to retrace the state of the abstract machine at every moment The major advantage of this approach is that it gives the actual amount of time being spent per procedure, or whether garbage collection dominates execution time The major drawback is that tracking down the state of the abstract machine may take significant time, and in the worst case may slow down the whole execution
The following procedures are available:
Initialise the data-structures for the profiler Unnecessary for dynamic profiler
Start profiling
Stop profiling
Macros | |
#define | CONTEXT_PC(scv) NULL |
#define | CONTEXT_BP(scv) NULL |
Functions | |
void | Yap_InitLowProf (void) |