Mario Kart 64
Loading...
Searching...
No Matches
profiler.h
Go to the documentation of this file.
1#ifndef PROFILER_H
2#define PROFILER_H
3
4extern u64 osClockRate;
5
7 /* 0x00 */ s16 numSoundTimes;
8 /* 0x02 */ s16 numVblankTimes;
9 // gameTimes:
10 // 0: thread 5 start
11 // 1: level script execution
12 // 2: render
13 // 3: display lists
14 // 4: thread 4 end (0 terminated)
15 /* 0x08 */ OSTime gameTimes[5];
16 // gfxTimes:
17 // 0: processors queued
18 // 1: rsp completed
19 // 2: rdp completed
20 /* 0x30 */ OSTime gfxTimes[3];
21 /* 0x48 */ OSTime soundTimes[8];
22 /* 0x88 */ OSTime vblankTimes[8];
23};
24
25// thread event IDs
27
29
34void draw_profiler(void);
35void resource_display(void);
36
38
39#endif /* PROFILER_H */
unsigned long long int u64
Definition llconv.c:2
u64 OSTime
Definition os_time.h:18
void draw_profiler(void)
u64 osClockRate
Definition osInitialize.c:16
ProfilerGameEvent
Definition profiler.h:26
@ AFTER_DISPLAY_LISTS
Definition profiler.h:26
@ THREAD5_END
Definition profiler.h:26
@ LEVEL_SCRIPT_EXECUTE
Definition profiler.h:26
@ THREAD5_START
Definition profiler.h:26
@ BEFORE_DISPLAY_LISTS
Definition profiler.h:26
void profiler_log_thread4_time(void)
Definition profiler.c:24
void resource_display(void)
Definition profiler.c:220
void profiler_log_thread5_time(enum ProfilerGameEvent eventID)
Definition profiler.c:15
void profiler_log_gfx_time(enum ProfilerGfxEvent eventID)
Definition profiler.c:32
void profiler_log_vblank_time(void)
Definition profiler.c:40
s32 gEnableResourceMeters
Definition profiler.c:9
ProfilerGfxEvent
Definition profiler.h:28
@ RSP_COMPLETE
Definition profiler.h:28
@ TASKS_QUEUED
Definition profiler.h:28
@ RDP_COMPLETE
Definition profiler.h:28
Definition profiler.h:6
OSTime vblankTimes[8]
Definition profiler.h:22
OSTime gfxTimes[3]
Definition profiler.h:20
OSTime soundTimes[8]
Definition profiler.h:21
s16 numVblankTimes
Definition profiler.h:8
s16 numSoundTimes
Definition profiler.h:7
OSTime gameTimes[5]
Definition profiler.h:15
signed int s32
Definition ultratypes.h:15
signed short int s16
Definition ultratypes.h:13