From: havoc Date: Fri, 3 Jun 2005 13:36:22 +0000 (+0000) Subject: reset callcount in prvm_profile X-Git-Tag: xonotic-v0.1.0preview~4795 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f0e9d87816ec41bb20bd41e9d3adfdb61650b75;p=xonotic%2Fdarkplaces.git reset callcount in prvm_profile git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5387 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_exec.c b/prvm_exec.c index ab166f35..8dcd878e 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -199,7 +199,7 @@ void PRVM_Profile_f (void) Con_Print("prvm_profile \n"); return; } - + PRVM_Begin; if(!PRVM_SetProgFromString(Cmd_Argv(1))) return; @@ -227,6 +227,7 @@ void PRVM_Profile_f (void) num++; best->profile = 0; best->builtinsprofile = 0; + best->callcount = 0; } } while (best); @@ -245,7 +246,7 @@ void PRVM_CrashAll() PRVM_SetProg(i); PRVM_Crash(); } - + prog = oldprog; } @@ -381,7 +382,7 @@ PRVM_ExecuteProgram extern cvar_t prvm_boundscheck; extern cvar_t prvm_traceqc; extern int PRVM_ED_FindFieldOffset (const char *field); -extern ddef_t* PRVM_ED_FindGlobal(const char *name); +extern ddef_t* PRVM_ED_FindGlobal(const char *name); void PRVM_ExecuteProgram (func_t fnum, const char *errormessage) { dstatement_t *st;