]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_exec.c
-Added the callcount field to the mfunction_t structure.
[xonotic/darkplaces.git] / pr_exec.c
index c516fec7f2e6820ac648d3806252a1bb77016851..2393ed1dd4d127d0939f31cee067f20e589cd555 100644 (file)
--- a/pr_exec.c
+++ b/pr_exec.c
@@ -221,6 +221,8 @@ void PR_Profile_f (void)
                return;
        }
 
+       Con_Print( "Server Profile:\n[Profile] [BuiltinProfile] [CallCount]\n" );
+
        //howmany = 10;
        //if (Cmd_Argc() == 2)
        //      howmany = atoi(Cmd_Argv(1));
@@ -241,7 +243,7 @@ void PR_Profile_f (void)
                if (best)
                {
                        //if (num < howmany)
-                               Con_Printf("%7i %7i %s\n", best->profile, best->builtinsprofile, PR_GetString(best->s_name));
+                               Con_Printf("%7i %7i %7i %s\n", best->profile, best->builtinsprofile, best->callcount, PR_GetString(best->s_name));
                        num++;
                        best->profile = 0;
                        best->builtinsprofile = 0;