diff options
| author | Gamer64 <gamer64@eden-emu.dev> | 2025-08-02 17:22:38 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-08-02 17:22:38 +0200 |
| commit | 1f34d836b4fb37997e58958630fee5ffb3a678ec (patch) | |
| tree | ac46676957a3f45876609da027cb6c1a4e191164 /src/core/cpu_manager.cpp | |
| parent | b32a667d6fcb069f2ba92d08fc82778c39b036d7 (diff) | |
Add cmake option to enable microprofile (#179)
Backported from https://github.com/azahar-emu/azahar/commit/dd9c743041308112c8dc349c5c237c04b2c4c75f.
Co-authored-by: PabloMK7 <hackyglitch2@gmail.com>
Co-authored-by: Shinmegumi <shinmegumi@eden-emu.dev>
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 <gamer64@eden-emu.dev>
Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
Diffstat (limited to 'src/core/cpu_manager.cpp')
| -rw-r--r-- | src/core/cpu_manager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/cpu_manager.cpp b/src/core/cpu_manager.cpp index 9b1c773877..1b838eea59 100644 --- a/src/core/cpu_manager.cpp +++ b/src/core/cpu_manager.cpp @@ -201,7 +201,9 @@ void CpuManager::RunThread(std::stop_token token, std::size_t core) { // Cleanup SCOPE_EXIT { data.host_context->Exit(); +#if MICROPROFILE_ENABLED MicroProfileOnThreadExit(); +#endif }; // Running |
