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/video_core/gpu_thread.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/video_core/gpu_thread.cpp') diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index e2bfdcd7fd..2b4bce4f8d 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp @@ -23,9 +23,11 @@ static void RunThread(std::stop_token stop_token, Core::System& system, Tegra::Control::Scheduler& scheduler, SynchState& state) { std::string name = "GPU"; MicroProfileOnThreadCreate(name.c_str()); +#if MICROPROFILE_ENABLED SCOPE_EXIT { MicroProfileOnThreadExit(); }; +#endif Common::SetCurrentThreadName(name.c_str()); Common::SetCurrentThreadPriority(Common::ThreadPriority::Critical); -- cgit v1.2.3