mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
Kernel: Expose per-thread information in /proc/all
Previously it was not possible to see what each thread in a process was up to, or how much CPU it was consuming. This patch fixes that. SystemMonitor and "top" now show threads instead of just processes. "ps" is gonna need some more fixing, but it at least builds for now. Fixes #66.
This commit is contained in:
@@ -55,8 +55,8 @@ void ProcessStateWidget::refresh()
|
||||
auto& data = active_process_data.value();
|
||||
|
||||
m_pid_label->set_text(String::format("%s(%d)", data.name.characters(), pid));
|
||||
m_state_label->set_text(data.state);
|
||||
m_cpu_label->set_text(String::format("%d", data.times_scheduled));
|
||||
m_state_label->set_text(data.threads.first().state);
|
||||
m_cpu_label->set_text(String::format("%d", data.threads.first().times_scheduled));
|
||||
m_memory_label->set_text(String::format("%d", data.amount_resident));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user