1 // SONIC ROBO BLAST 2 2 //----------------------------------------------------------------------------- 3 // Copyright (C) 2020 by Sonic Team Junior. 4 // 5 // This program is free software distributed under the 6 // terms of the GNU General Public License, version 2. 7 // See the 'LICENSE' file for more details. 8 //----------------------------------------------------------------------------- 9 /// \file m_perfstats.h 10 /// \brief Performance measurement tools. 11 12 #ifndef __M_PERFSTATS_H__ 13 #define __M_PERFSTATS_H__ 14 15 #include "doomdef.h" 16 #include "lua_script.h" 17 #include "p_local.h" 18 19 extern precise_t ps_tictime; 20 21 extern precise_t ps_playerthink_time; 22 extern precise_t ps_thinkertime; 23 24 extern precise_t ps_thlist_times[]; 25 26 extern int ps_checkposition_calls; 27 28 extern precise_t ps_lua_thinkframe_time; 29 extern int ps_lua_mobjhooks; 30 31 typedef struct 32 { 33 precise_t time_taken; 34 char short_src[LUA_IDSIZE]; 35 } ps_hookinfo_t; 36 37 void PS_SetThinkFrameHookInfo(int index, precise_t time_taken, char* short_src); 38 39 void M_DrawPerfStats(void); 40 41 #endif 42