Honor 'perfcnt_enable' in logging (#17022)

This commit is contained in:
sonninnos 2024-09-21 06:09:21 +03:00 committed by GitHub
parent 4b177d0ac7
commit 0c468f9a44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,6 +395,9 @@ void runloop_log_counters(
static void runloop_perf_log(void) static void runloop_perf_log(void)
{ {
if (!runloop_state.perfcnt_enable)
return;
RARCH_LOG("[PERF]: Performance counters (libretro):\n"); RARCH_LOG("[PERF]: Performance counters (libretro):\n");
runloop_log_counters(runloop_state.perf_counters_libretro, runloop_log_counters(runloop_state.perf_counters_libretro,
runloop_state.perf_ptr_libretro); runloop_state.perf_ptr_libretro);