mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-22 11:00:29 +02:00
`progress` doesn't exist on the stack by itself. mystery inlined and deduped static function?
65 lines
1.3 KiB
C
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(§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
|