m_perfstats.h 1 KB
Newer Older
Hannu Hanhi committed
1 2
// SONIC ROBO BLAST 2
//-----------------------------------------------------------------------------
3
// Copyright (C) 2020 by Sonic Team Junior.
Hannu Hanhi committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
/// \file m_perfstats.h
/// \brief Performance measurement tools.

#ifndef __M_PERFSTATS_H__
#define __M_PERFSTATS_H__

#include "doomdef.h"
#include "lua_script.h"
#include "p_local.h"

James R. committed
19
extern precise_t ps_tictime;
Hannu Hanhi committed
20

James R. committed
21 22
extern precise_t ps_playerthink_time;
extern precise_t ps_thinkertime;
Hannu Hanhi committed
23

James R. committed
24
extern precise_t ps_thlist_times[];
Hannu Hanhi committed
25

James R. committed
26
extern int       ps_checkposition_calls;
Hannu Hanhi committed
27

James R. committed
28 29
extern precise_t ps_lua_thinkframe_time;
extern int       ps_lua_mobjhooks;
Hannu Hanhi committed
30 31 32 33 34 35 36 37 38 39 40

typedef struct
{
	UINT32 time_taken;
	char short_src[LUA_IDSIZE];
} ps_hookinfo_t;

void PS_SetThinkFrameHookInfo(int index, UINT32 time_taken, char* short_src);

void M_DrawPerfStats(void);

41
#endif