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/svc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle/kernel/svc.cpp') diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index c55dc0c8ad..b1ce1e9daa 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -4428,7 +4428,9 @@ void Call(Core::System& system, u32 imm) { std::array args; kernel.CurrentPhysicalCore().SaveSvcArguments(process, args); +#if MICROPROFILE_ENABLED kernel.EnterSVCProfile(); +#endif if (process.Is64Bit()) { Call64(system, imm, args); @@ -4436,7 +4438,9 @@ void Call(Core::System& system, u32 imm) { Call32(system, imm, args); } +#if MICROPROFILE_ENABLED kernel.ExitSVCProfile(); +#endif kernel.CurrentPhysicalCore().LoadSvcArguments(process, args); } -- cgit v1.2.3