added Low Profiler to yap

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@804 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
rslopes
2003-03-21 16:18:42 +00:00
parent 0418e54be4
commit 1febfedc9d
4 changed files with 60 additions and 0 deletions

View File

@@ -106,6 +106,10 @@ STATIC_PROTO(void a_fetch_cv, (void));
STATIC_PROTO(void a_fetch_vc, (void));
STATIC_PROTO(void a_f2, (int));
#ifdef LOW_PROF
int PROFSIZE;
#endif
#define CELLSIZE sizeof(CELL)
#define MaxLabels 2048
@@ -2614,6 +2618,11 @@ Yap_assemble(int mode)
YAPLeaveCriticalSection();
{
Clause *cl = (Clause *)code_addr; /* lcc, why? */
#ifdef LOW_PROF
PROFSIZE=code_p;
#endif
return(cl->ClCode);
}
}