Mario Kart 64
Loading...
Searching...
No Matches
profiler.c File Reference
#include <ultra64.h>
#include <macros.h>
#include "profiler.h"
#include <mk64.h>
#include "main.h"
Include dependency graph for profiler.c:

Functions

void profiler_log_thread5_time (enum ProfilerGameEvent eventID)
 
void profiler_log_thread4_time (void)
 
void profiler_log_gfx_time (enum ProfilerGfxEvent eventID)
 
void profiler_log_vblank_time (void)
 
void draw_profiler_bar (OSTime clockBase, OSTime clockStart, OSTime clockEnd, s16 posY, u16 color)
 
void draw_reference_profiler_bars (void)
 
void draw_profiler_mode_1 (void)
 
void draw_profiler_mode_0 (void)
 
void resource_display (void)
 

Variables

struct ProfilerFrameData gProfilerFrameData [2]
 
s32 gEnableResourceMeters = 0
 
s16 D_800DC664 = 0
 
s16 D_800DC668 = 1
 
s16 D_800DC66C = 0
 

Function Documentation

◆ draw_profiler_bar()

void draw_profiler_bar ( OSTime clockBase,
OSTime clockStart,
OSTime clockEnd,
s16 posY,
u16 color )

I believe this is supposed to cap rectX1 and rectX2 to 320, but the

Here is the caller graph for this function:

◆ draw_profiler_mode_0()

void draw_profiler_mode_0 ( void )

wrong index used to retrieve vblankTimes, thus empty pairs can

Here is the call graph for this function:
Here is the caller graph for this function:

◆ draw_profiler_mode_1()

void draw_profiler_mode_1 ( void )

Likely identical to sm64 but in mk64 they likely commented it out.

◆ draw_reference_profiler_bars()

void draw_reference_profiler_bars ( void )
Here is the caller graph for this function:

◆ profiler_log_gfx_time()

void profiler_log_gfx_time ( enum ProfilerGfxEvent eventID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ profiler_log_thread4_time()

void profiler_log_thread4_time ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ profiler_log_thread5_time()

void profiler_log_thread5_time ( enum ProfilerGameEvent eventID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ profiler_log_vblank_time()

void profiler_log_vblank_time ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resource_display()

void resource_display ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ D_800DC664

s16 D_800DC664 = 0

◆ D_800DC668

s16 D_800DC668 = 1

◆ D_800DC66C

s16 D_800DC66C = 0

◆ gEnableResourceMeters

s32 gEnableResourceMeters = 0

◆ gProfilerFrameData

struct ProfilerFrameData gProfilerFrameData[2]