Do check outside of rarch_perf_log
This commit is contained in:
parent
160d90f22a
commit
b1fa971d35
|
@ -108,9 +108,6 @@ static void log_counters(struct retro_perf_counter **counters, unsigned num)
|
|||
|
||||
void rarch_perf_log(void)
|
||||
{
|
||||
if (!rarch_ctl(RARCH_CTL_IS_PERFCNT_ENABLE, NULL))
|
||||
return;
|
||||
|
||||
RARCH_LOG("[PERF]: Performance counters (RetroArch):\n");
|
||||
log_counters(perf_counters_rarch, perf_ptr_rarch);
|
||||
}
|
||||
|
|
|
@ -8121,7 +8121,8 @@ void main_exit(void *args)
|
|||
#endif
|
||||
rarch_ctl(RARCH_CTL_MAIN_DEINIT, NULL);
|
||||
|
||||
rarch_perf_log();
|
||||
if (runloop_perfcnt_enable)
|
||||
rarch_perf_log();
|
||||
|
||||
#if defined(HAVE_LOGGER) && !defined(ANDROID)
|
||||
logger_shutdown();
|
||||
|
|
Loading…
Reference in New Issue