/* 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(§ion); \ } \ #define profile_exit(section) \ if (profile_global_enable && section.active) \ { \ profile_exit_private(§ion); \ } \ /* ---------- 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