diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-26 21:25:45 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-26 21:37:30 +0100 |
commit | 712ae73581a1b44b36654824229f9cc475381c34 (patch) | |
tree | bab8587303236eabeef92afce5fe2cad35c9c635 /DevTools | |
parent | 86a9a52355905e4ac71730dba5c325498fd05177 (diff) | |
download | serenity-712ae73581a1b44b36654824229f9cc475381c34.zip |
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.
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/HackStudio/ProcessStateWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/HackStudio/ProcessStateWidget.cpp b/DevTools/HackStudio/ProcessStateWidget.cpp index 2509f0944e..f195c91cd8 100644 --- a/DevTools/HackStudio/ProcessStateWidget.cpp +++ b/DevTools/HackStudio/ProcessStateWidget.cpp @@ -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)); } |