Log cpu usage periodically

This commit is contained in:
Megamouse 2022-03-11 21:08:44 +01:00
parent f3a325fe1a
commit 04df392866
11 changed files with 338 additions and 10 deletions

View file

@ -46,7 +46,7 @@ void progress_dialog_server::operator()()
break;
}
std::this_thread::sleep_for(5ms);
thread_ctrl::wait_for(5000);
text0 = +g_progr;
}
@ -138,7 +138,7 @@ void progress_dialog_server::operator()()
if (skip_this_one)
{
// Do nothing
std::this_thread::sleep_for(10ms);
thread_ctrl::wait_for(10000);
continue;
}
@ -173,7 +173,7 @@ void progress_dialog_server::operator()()
}
}
std::this_thread::sleep_for(10ms);
thread_ctrl::wait_for(10000);
}
if (g_system_progress_stopping || thread_ctrl::state() == thread_state::aborting)