Files
Cesarus85--mjolnir-vr/source/cseries/profile.h
T
punpckhdq a40783e4f5 render_frame_pregame: 99%
`progress` doesn't exist on the stack by itself. mystery inlined and deduped static function?
2026-06-08 16:27:33 +01:00

65 lines
1.3 KiB
C

/*
PROFILE.H
*/
#ifndef __PROFILE_H
#define __PROFILE_H
#pragma once
/* ---------- constants */
/* ---------- macros */
#define profile_enter(section) \
if (profile_global_enable && section.active) \
{ \
profile_enter_private(&section); \
} \
#define profile_exit(section) \
if (profile_global_enable && section.active) \
{ \
profile_exit_private(&section); \
} \
/* ---------- structures */
struct profile_section
{
const char *name;
long section_index;
boolean active;
short stack_depth;
long field_C;
unsigned __int64 field_10;
char __unknown18[1460];
long field_5CC;
char __unknown5D0[40];
};
/* ---------- prototypes/PROFILE.C */
void profile_initialize(void);
void profile_enter_private(struct profile_section *objects_update_section);
void profile_exit_private(struct profile_section *objects_update_section);
void profile_render_window_start(void *arg0);
void profile_render_window_end(void);
/* ---------- globals */
extern boolean profile_timebase_ticks;
extern boolean profile_global_enable;
extern boolean profile_dump_frames;
extern boolean profile_dump_lost_frames;
/* comm */
boolean profile_global_enable;
/* ---------- public code */
void profile_initialize(void);
#endif // __PROFILE_H