Debugger: Optimize cpu_thread::dump_regs()

Reuse string buffer. Copies and reallocations are expensive with such large strings.
This commit is contained in:
Eladash 2022-06-22 12:00:06 +03:00 committed by Megamouse
parent 794cbd8708
commit 5e01ffdfd8
12 changed files with 35 additions and 41 deletions

View file

@ -119,7 +119,7 @@ std::string dump_useful_thread_info()
if (auto cpu = get_current_cpu_thread())
{
result = cpu->dump_all();
cpu->dump_all(result);
}
guard = false;