Add cmake option to enable microprofile (#179)

Backported from dd9c743041.

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: #179
Co-authored-by: Gamer64 <gamer64@eden-emu.dev>
Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
This commit is contained in:
Gamer64 2025-08-02 17:22:38 +02:00 committed by crueter
parent b32a667d6f
commit 1f34d836b4
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
17 changed files with 64 additions and 11 deletions

View file

@ -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