]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_comp.h
patch by parasti; changes to his patch: no per function dprint for now
[xonotic/darkplaces.git] / pr_comp.h
index 912491e6ffd9334ed9a3663e9708a8e40d9bf467..eab88b50020f9b147b0ca35bee2d773a8210e74d 100644 (file)
--- a/pr_comp.h
+++ b/pr_comp.h
@@ -163,9 +163,11 @@ typedef struct mfunction_s
        int             parm_start;
        int             locals;                         // total ints of parms + locals
 
-       int             profile;                // runtime
-       int             builtinsprofile; // cost of builtin functions called by this function
-       int             callcount; // times the functions has been called since the last profile call
+       // these are doubles so that they can count up to 54bits or so rather than 32bit
+       double  profile;                // runtime
+       double  builtinsprofile; // cost of builtin functions called by this function
+       double  callcount; // times the functions has been called since the last profile call
+       double  totaltime; // total execution time of this function DIRECTLY FROM THE ENGINE
 
        int             s_name;
        int             s_file;                 // source file defined in