mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Kernel: Print scheduler state to the display console
This commit is contained in:
parent
20743e8aed
commit
99eab4667a
Notes:
sideshowbarker
2024-07-18 18:00:35 +09:00
Author: https://github.com/supercomputer7
Commit: 99eab4667a
Pull-request: https://github.com/SerenityOS/serenity/pull/6277
Reviewed-by: https://github.com/ElectrodeYT
Reviewed-by: https://github.com/awesomekling
3 changed files with 5 additions and 2 deletions
|
@ -587,7 +587,7 @@ void dump_thread_list()
|
|||
Thread::for_each([&](Thread& thread) {
|
||||
switch (thread.state()) {
|
||||
case Thread::Dying:
|
||||
dbgln(" {:14} {:30} @ {:04x}:{:08x} Finalizable: {}, (nsched: {})",
|
||||
dmesgln(" {:14} {:30} @ {:04x}:{:08x} Finalizable: {}, (nsched: {})",
|
||||
thread.state_string(),
|
||||
thread,
|
||||
get_cs(thread),
|
||||
|
@ -596,7 +596,7 @@ void dump_thread_list()
|
|||
thread.times_scheduled());
|
||||
break;
|
||||
default:
|
||||
dbgln(" {:14} Pr:{:2} {:30} @ {:04x}:{:08x} (nsched: {})",
|
||||
dmesgln(" {:14} Pr:{:2} {:30} @ {:04x}:{:08x} (nsched: {})",
|
||||
thread.state_string(),
|
||||
thread.priority(),
|
||||
thread,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue