patches to Ricardo Lopes' low level profiler: enable if SIGPROF is

there, do sorting, init PROFPREDS when you start counters, keep time
stamps for eventual assert/retract, and use qsort (3) to do less work.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@829 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2003-05-20 19:11:59 +00:00
parent d22fe2107c
commit 0afb07931f
14 changed files with 2736 additions and 1655 deletions

View File

@@ -2741,5 +2741,10 @@ Yap_PredIsIndexable(PredEntry *ap)
}
goto restart_index;
}
#ifdef LOW_PROF
if (ProfilerOn) {
Yap_inform_profiler_of_clause(indx_out, Yap_prof_end, ap);
}
#endif
return(indx_out);
}