mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Savestates: Reduce logging
This commit is contained in:
parent
94c048d018
commit
2023057fbb
@ -1446,16 +1446,28 @@ bool lv2_obj::sleep_unlocked(cpu_thread& thread, u64 timeout, u64 current_time)
|
|||||||
|
|
||||||
auto on_to_sleep_update = [&]()
|
auto on_to_sleep_update = [&]()
|
||||||
{
|
{
|
||||||
std::string out = fmt::format("Threads (%d):", g_to_sleep.size());
|
if (g_to_sleep.size() > 5u)
|
||||||
for (auto thread : g_to_sleep)
|
|
||||||
{
|
{
|
||||||
fmt::append(out, " 0x%x,", thread->id);
|
ppu_log.warning("Threads (%d)", g_to_sleep.size());
|
||||||
}
|
}
|
||||||
|
else if (!g_to_sleep.empty())
|
||||||
ppu_log.warning("%s", out);
|
|
||||||
|
|
||||||
if (g_to_sleep.empty())
|
|
||||||
{
|
{
|
||||||
|
// In case there is a deadlock (PPU threads not sleeping)
|
||||||
|
// Print-out their IDs for further inspection (focus at 5 at max for now to avoid log spam)
|
||||||
|
std::string out = fmt::format("Threads (%d):", g_to_sleep.size());
|
||||||
|
for (auto thread : g_to_sleep)
|
||||||
|
{
|
||||||
|
fmt::append(out, " 0x%x,", thread->id);
|
||||||
|
}
|
||||||
|
|
||||||
|
out.resize(out.size() - 1);
|
||||||
|
|
||||||
|
ppu_log.warning("%s", out);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ppu_log.warning("Final Thread");
|
||||||
|
|
||||||
// All threads are ready, wake threads
|
// All threads are ready, wake threads
|
||||||
Emu.CallFromMainThread([]
|
Emu.CallFromMainThread([]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user