From 1f34d836b4fb37997e58958630fee5ffb3a678ec Mon Sep 17 00:00:00 2001 From: Gamer64 Date: Sat, 2 Aug 2025 17:22:38 +0200 Subject: Add cmake option to enable microprofile (#179) Backported from https://github.com/azahar-emu/azahar/commit/dd9c743041308112c8dc349c5c237c04b2c4c75f. Co-authored-by: PabloMK7 Co-authored-by: Shinmegumi Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/179 Co-authored-by: Gamer64 Co-committed-by: Gamer64 --- src/core/hle/kernel/kernel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/hle/kernel/kernel.cpp') diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 9e5eaeec43..7a851e9b02 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -1278,6 +1278,7 @@ void KernelCore::ExceptionalExitApplication() { SuspendEmulation(true); } +#if MICROPROFILE_ENABLED void KernelCore::EnterSVCProfile() { impl->svc_ticks[CurrentPhysicalCoreIndex()] = MicroProfileEnter(MICROPROFILE_TOKEN(Kernel_SVC)); } @@ -1285,6 +1286,7 @@ void KernelCore::EnterSVCProfile() { void KernelCore::ExitSVCProfile() { MicroProfileLeave(MICROPROFILE_TOKEN(Kernel_SVC), impl->svc_ticks[CurrentPhysicalCoreIndex()]); } +#endif Init::KSlabResourceCounts& KernelCore::SlabResourceCounts() { return impl->slab_resource_counts; -- cgit v1.2.3