Skip to content

Commit

Permalink
Honor 'perfcnt_enable' in logging (#17022)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos authored Sep 21, 2024
1 parent 4b177d0 commit 0c468f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ void runloop_log_counters(

static void runloop_perf_log(void)
{
if (!runloop_state.perfcnt_enable)
return;

RARCH_LOG("[PERF]: Performance counters (libretro):\n");
runloop_log_counters(runloop_state.perf_counters_libretro,
runloop_state.perf_ptr_libretro);
Expand Down

0 comments on commit 0c468f9

Please sign in to comment.