RetroArch
Classes | Macros | Typedefs | Functions
performance_counters.h File Reference
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <libretro.h>
#include <features/features_cpu.h>
Include dependency graph for performance_counters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rarch_timer
 

Macros

#define MAX_COUNTERS   64
 
#define performance_counter_init(perf, name)
 
#define performance_counter_start_internal(is_perfcnt_enable, perf)
 
#define performance_counter_stop_internal(is_perfcnt_enable, perf)
 
#define performance_counter_start_plus(is_perfcnt_enable, perf)   performance_counter_start_internal(is_perfcnt_enable, perf)
 
#define performance_counter_stop_plus(is_perfcnt_enable, perf)   performance_counter_stop_internal(is_perfcnt_enable, perf)
 

Typedefs

typedef struct rarch_timer rarch_timer_t
 

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 performance_counter_register (struct retro_perf_counter *perf)
 
void performance_counters_clear (void)
 
void retro_perf_log (void)
 
void rarch_perf_log (void)
 
void rarch_perf_register (struct retro_perf_counter *perf)
 
void rarch_timer_tick (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_begin (rarch_timer_t *timer, uint64_t ms)
 
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_end (rarch_timer_t *timer)
 
int rarch_timer_get_timeout (rarch_timer_t *timer)
 

Macro Definition Documentation

◆ MAX_COUNTERS

#define MAX_COUNTERS   64

◆ performance_counter_init

#define performance_counter_init (   perf,
  name 
)
Value:
perf.ident = name; \
if (!perf.registered) \
rarch_perf_register(&perf)
GLuint const GLchar * name
Definition: glext.h:6671

◆ performance_counter_start_internal

#define performance_counter_start_internal (   is_perfcnt_enable,
  perf 
)
Value:
if ((is_perfcnt_enable)) \
{ \
perf.call_cnt++; \
}
retro_perf_tick_t cpu_features_get_perf_counter(void)
Definition: features_cpu.c:149

◆ performance_counter_start_plus

#define performance_counter_start_plus (   is_perfcnt_enable,
  perf 
)    performance_counter_start_internal(is_perfcnt_enable, perf)

performance_counter_start: : pointer to performance counter

Start performance counter.

◆ performance_counter_stop_internal

#define performance_counter_stop_internal (   is_perfcnt_enable,
  perf 
)
Value:
if ((is_perfcnt_enable)) \
perf.total += cpu_features_get_perf_counter() - perf.start
retro_perf_tick_t cpu_features_get_perf_counter(void)
Definition: features_cpu.c:149

◆ performance_counter_stop_plus

#define performance_counter_stop_plus (   is_perfcnt_enable,
  perf 
)    performance_counter_stop_internal(is_perfcnt_enable, perf)

performance_counter_stop: : pointer to performance counter

Stop performance counter.

Typedef Documentation

◆ rarch_timer_t

typedef struct rarch_timer rarch_timer_t

Function Documentation

◆ 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  ms 
)
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: