diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-26 21:35:24 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-26 21:37:38 +0100 |
commit | 5b8cf2ee234c708f1bca3df9abf49a8625b227cc (patch) | |
tree | 27c58230ad5a3873f95721d597de9e4cf7f69fbe /Userland/top.cpp | |
parent | 712ae73581a1b44b36654824229f9cc475381c34 (diff) | |
download | serenity-5b8cf2ee234c708f1bca3df9abf49a8625b227cc.zip |
Kernel: Make syscall counters and page fault counters per-thread
Now that we show individual threads in SystemMonitor and "top",
it's also very nice to have individual counters for the threads. :^)
Diffstat (limited to 'Userland/top.cpp')
-rw-r--r-- | Userland/top.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/top.cpp b/Userland/top.cpp index de987d7055..d892130b4b 100644 --- a/Userland/top.cpp +++ b/Userland/top.cpp @@ -88,10 +88,10 @@ static Snapshot get_snapshot() thread_data.amount_virtual = stats.amount_virtual; thread_data.amount_resident = stats.amount_resident; thread_data.amount_shared = stats.amount_shared; - thread_data.syscall_count = stats.syscall_count; - thread_data.inode_faults = stats.inode_faults; - thread_data.zero_faults = stats.zero_faults; - thread_data.cow_faults = stats.cow_faults; + thread_data.syscall_count = thread.syscall_count; + thread_data.inode_faults = thread.inode_faults; + thread_data.zero_faults = thread.zero_faults; + thread_data.cow_faults = thread.cow_faults; thread_data.icon_id = stats.icon_id; thread_data.times_scheduled = thread.times_scheduled; thread_data.priority = thread.priority; |