17 #ifndef _PERFORMANCE_COUNTERS_H 18 #define _PERFORMANCE_COUNTERS_H 30 #define MAX_COUNTERS 64 60 #define performance_counter_init(perf, name) \ 62 if (!perf.registered) \ 63 rarch_perf_register(&perf) 65 #define performance_counter_start_internal(is_perfcnt_enable, perf) \ 66 if ((is_perfcnt_enable)) \ 69 perf.start = cpu_features_get_perf_counter(); \ 72 #define performance_counter_stop_internal(is_perfcnt_enable, perf) \ 73 if ((is_perfcnt_enable)) \ 74 perf.total += cpu_features_get_perf_counter() - perf.start 82 #define performance_counter_start_plus(is_perfcnt_enable, perf) performance_counter_start_internal(is_perfcnt_enable, perf) 90 #define performance_counter_stop_plus(is_perfcnt_enable, perf) performance_counter_stop_internal(is_perfcnt_enable, perf) void rarch_perf_register(struct retro_perf_counter *perf)
Definition: performance_counters.c:64
int64_t current
Definition: performance_counters.h:35
Definition: btstack_hid.c:110
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
struct rarch_timer rarch_timer_t
void rarch_timer_begin(rarch_timer_t *timer, uint64_t ms)
Definition: performance_counters.c:179
void rarch_perf_log(void)
Definition: performance_counters.c:108
unsigned retro_get_perf_count_libretro(void)
Definition: performance_counters.c:59
bool rarch_timer_is_running(rarch_timer_t *timer)
Definition: performance_counters.c:138
void retro_perf_log(void)
Definition: performance_counters.c:117
void rarch_timer_end(rarch_timer_t *timer)
Definition: performance_counters.c:152
unsigned retro_get_perf_count_rarch(void)
Definition: performance_counters.c:54
void rarch_timer_begin_new_time_us(rarch_timer_t *timer, uint64_t usec)
Definition: performance_counters.c:170
Definition: libretro.h:1612
Definition: performance_counters.h:33
void rarch_timer_tick(rarch_timer_t *timer)
Definition: performance_counters.c:123
bool timer_end
Definition: performance_counters.h:39
void performance_counter_register(struct retro_perf_counter *perf)
Definition: performance_counters.c:77
void performance_counters_clear(void)
Definition: performance_counters.c:86
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
bool timer_begin
Definition: performance_counters.h:38
bool rarch_timer_has_expired(rarch_timer_t *timer)
Definition: performance_counters.c:145
struct retro_perf_counter ** retro_get_perf_counter_libretro(void)
Definition: performance_counters.c:49
struct retro_perf_counter ** retro_get_perf_counter_rarch(void)
Definition: performance_counters.c:44
void rarch_timer_begin_new_time(rarch_timer_t *timer, uint64_t sec)
Definition: performance_counters.c:161
int64_t timeout_us
Definition: performance_counters.h:36
signed __int64 int64_t
Definition: stdint.h:135
int rarch_timer_get_timeout(rarch_timer_t *timer)
Definition: performance_counters.c:131
int64_t timeout_end
Definition: performance_counters.h:37
unsigned __int64 uint64_t
Definition: stdint.h:136