RetroArch
Macros | Functions | Variables
performance_counters.c File Reference
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <compat/strl.h>
#include "performance_counters.h"
#include "retroarch.h"
#include "verbosity.h"
Include dependency graph for performance_counters.c:
This graph shows which files directly or indirectly include this file:

Macros

#define PERF_LOG_FMT   "[PERF]: Avg (%s): %llu ticks, %llu runs.\n"
 

Functions

struct retro_perf_counter ** retro_get_perf_counter_rarch (void)
 
struct retro_perf_counter ** retro_get_perf_counter_libretro (void)
 
unsigned retro_get_perf_count_rarch (void)
 
unsigned retro_get_perf_count_libretro (void)
 
void rarch_perf_register (struct retro_perf_counter *perf)
 
void performance_counter_register (struct retro_perf_counter *perf)
 
void performance_counters_clear (void)
 
static void log_counters (struct retro_perf_counter **counters, unsigned num)
 
void rarch_perf_log (void)
 
void retro_perf_log (void)
 
void rarch_timer_tick (rarch_timer_t *timer)
 
int rarch_timer_get_timeout (rarch_timer_t *timer)
 
bool rarch_timer_is_running (rarch_timer_t *timer)
 
bool rarch_timer_has_expired (rarch_timer_t *timer)
 
void rarch_timer_end (rarch_timer_t *timer)
 
void rarch_timer_begin_new_time (rarch_timer_t *timer, uint64_t sec)
 
void rarch_timer_begin_new_time_us (rarch_timer_t *timer, uint64_t usec)
 
void rarch_timer_begin (rarch_timer_t *timer, uint64_t sec)
 

Variables

static struct retro_perf_counterperf_counters_rarch [MAX_COUNTERS]
 
static struct retro_perf_counterperf_counters_libretro [MAX_COUNTERS]
 
static unsigned perf_ptr_rarch
 
static unsigned perf_ptr_libretro
 

Macro Definition Documentation

◆ PERF_LOG_FMT

#define PERF_LOG_FMT   "[PERF]: Avg (%s): %llu ticks, %llu runs.\n"

Function Documentation

◆ log_counters()

static void log_counters ( struct retro_perf_counter **  counters,
unsigned  num 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ performance_counter_register()

void performance_counter_register ( struct retro_perf_counter perf)
Here is the caller graph for this function:

◆ performance_counters_clear()

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

◆ rarch_perf_log()

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

◆ rarch_perf_register()

void rarch_perf_register ( struct retro_perf_counter perf)
Here is the call graph for this function:

◆ rarch_timer_begin()

void rarch_timer_begin ( rarch_timer_t timer,
uint64_t  sec 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rarch_timer_begin_new_time()

void rarch_timer_begin_new_time ( rarch_timer_t timer,
uint64_t  sec 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rarch_timer_begin_new_time_us()

void rarch_timer_begin_new_time_us ( rarch_timer_t timer,
uint64_t  usec 
)
Here is the call graph for this function:

◆ rarch_timer_end()

void rarch_timer_end ( rarch_timer_t timer)
Here is the caller graph for this function:

◆ rarch_timer_get_timeout()

int rarch_timer_get_timeout ( rarch_timer_t timer)
Here is the caller graph for this function:

◆ rarch_timer_has_expired()

bool rarch_timer_has_expired ( rarch_timer_t timer)
Here is the caller graph for this function:

◆ rarch_timer_is_running()

bool rarch_timer_is_running ( rarch_timer_t timer)
Here is the caller graph for this function:

◆ rarch_timer_tick()

void rarch_timer_tick ( rarch_timer_t timer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retro_get_perf_count_libretro()

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

◆ retro_get_perf_count_rarch()

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

◆ retro_get_perf_counter_libretro()

struct retro_perf_counter** retro_get_perf_counter_libretro ( void  )
Here is the caller graph for this function:

◆ retro_get_perf_counter_rarch()

struct retro_perf_counter** retro_get_perf_counter_rarch ( void  )
Here is the caller graph for this function:

◆ retro_perf_log()

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

Variable Documentation

◆ perf_counters_libretro

struct retro_perf_counter* perf_counters_libretro[MAX_COUNTERS]
static

◆ perf_counters_rarch

struct retro_perf_counter* perf_counters_rarch[MAX_COUNTERS]
static

◆ perf_ptr_libretro

unsigned perf_ptr_libretro
static

◆ perf_ptr_rarch

unsigned perf_ptr_rarch
static