mirror of
https://github.com/libretro/RetroArch
synced 2025-03-18 13:20:57 +00:00
Cleanups
This commit is contained in:
parent
dbe620db60
commit
4fc1774901
23
retroarch.c
23
retroarch.c
@ -8278,12 +8278,6 @@ static void log_counters(
|
||||
}
|
||||
}
|
||||
|
||||
static void rarch_perf_log(struct rarch_state *p_rarch)
|
||||
{
|
||||
RARCH_LOG("[PERF]: Performance counters (RetroArch):\n");
|
||||
log_counters(p_rarch->perf_counters_rarch, p_rarch->perf_ptr_rarch);
|
||||
}
|
||||
|
||||
static void retro_perf_log(void)
|
||||
{
|
||||
struct rarch_state *p_rarch = &rarch_st;
|
||||
@ -8339,14 +8333,6 @@ static void performance_counter_register(struct retro_perf_counter *perf)
|
||||
perf->registered = true;
|
||||
}
|
||||
|
||||
static void performance_counters_clear(void)
|
||||
{
|
||||
struct rarch_state *p_rarch = &rarch_st;
|
||||
p_rarch->perf_ptr_libretro = 0;
|
||||
memset(p_rarch->perf_counters_libretro, 0,
|
||||
sizeof(p_rarch->perf_counters_libretro));
|
||||
}
|
||||
|
||||
struct string_list *dir_list_new_special(const char *input_dir,
|
||||
enum dir_list_type type, const char *filter,
|
||||
bool show_hidden_files)
|
||||
@ -15432,7 +15418,10 @@ void main_exit(void *args)
|
||||
rarch_ctl(RARCH_CTL_MAIN_DEINIT, NULL);
|
||||
|
||||
if (p_rarch->runloop_perfcnt_enable)
|
||||
rarch_perf_log(p_rarch);
|
||||
{
|
||||
RARCH_LOG("[PERF]: Performance counters (RetroArch):\n");
|
||||
log_counters(p_rarch->perf_counters_rarch, p_rarch->perf_ptr_rarch);
|
||||
}
|
||||
|
||||
#if defined(HAVE_LOGGER) && !defined(ANDROID)
|
||||
logger_shutdown();
|
||||
@ -18906,7 +18895,9 @@ static void uninit_libretro_symbols(
|
||||
p_rarch->location_driver_active = false;
|
||||
|
||||
/* Performance counters no longer valid. */
|
||||
performance_counters_clear();
|
||||
p_rarch->perf_ptr_libretro = 0;
|
||||
memset(p_rarch->perf_counters_libretro, 0,
|
||||
sizeof(p_rarch->perf_counters_libretro));
|
||||
}
|
||||
|
||||
#if defined(HAVE_RUNAHEAD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user