Debugger: always print cpu_thread::dump_misc()

Was removed for some reason.
This commit is contained in:
Nekotekina 2022-06-22 12:10:40 +03:00 committed by Ivan
parent 71e07dc6c7
commit 653a9e6e7f
3 changed files with 5 additions and 7 deletions

View File

@ -176,7 +176,7 @@ struct cpu_prof
{
return;
}
const std::string results = format(chart, samples, idle, true);
profiler.notice("All Threads: %u samples (%.4f%% idle):%s", samples, 100. * idle / samples, results);
}
@ -949,9 +949,7 @@ std::shared_ptr<CPUDisAsm> make_disasm(const cpu_thread* cpu);
std::string cpu_thread::dump_all() const
{
std::string ret = cpu_thread::dump_misc();
ret += '\n';
ret += dump_misc();
std::string ret = dump_misc();
ret += '\n';
ret += dump_regs();
ret += '\n';
@ -1004,7 +1002,7 @@ std::vector<std::pair<u32, u32>> cpu_thread::dump_callstack_list() const
std::string cpu_thread::dump_misc() const
{
return fmt::format("Type: %s\n" "State: %s\n", id_type() == 1 ? "PPU" : id_type() == 2 ? "SPU" : "CPU", state.load());
return fmt::format("Type: %s; State: %s\n", id_type() == 1 ? "PPU" : id_type() == 2 ? "SPU" : "RSX", state.load());
}
bool cpu_thread::suspend_work::push(cpu_thread* _this) noexcept

View File

@ -1211,7 +1211,7 @@ std::vector<std::pair<u32, u32>> ppu_thread::dump_callstack_list() const
std::string ppu_thread::dump_misc() const
{
std::string ret;
std::string ret = cpu_thread::dump_misc();
fmt::append(ret, "Priority: %d\n", +prio);
fmt::append(ret, "Stack: 0x%x..0x%x\n", stack_addr, stack_addr + stack_size - 1);

View File

@ -1221,7 +1221,7 @@ std::vector<std::pair<u32, u32>> spu_thread::dump_callstack_list() const
std::string spu_thread::dump_misc() const
{
std::string ret;
std::string ret = cpu_thread::dump_misc();
fmt::append(ret, "Block Weight: %u (Retreats: %u)", block_counter, block_failure);