JIT: Don't always look up symbols for blocks

With tons of symbols, this results in noticeable stuttering, so
skip lookups if the perf dir option isn't set anyway.
This commit is contained in:
Léo Lam
2017-08-25 20:59:31 +02:00
parent 432117047b
commit 8cd8e9d905
3 changed files with 19 additions and 1 deletions

View File

@ -12,6 +12,7 @@ namespace JitRegister
void Init(const std::string& perf_dir);
void Shutdown();
void RegisterV(const void* base_address, u32 code_size, const char* format, va_list args);
bool IsEnabled();
inline void Register(const void* base_address, u32 code_size, const char* format, ...)
{