mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 14:47:35 +00:00
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. :^)
This commit is contained in:
parent
712ae73581
commit
5b8cf2ee23
9 changed files with 38 additions and 38 deletions
|
@ -286,15 +286,6 @@ public:
|
|||
|
||||
Lock& big_lock() { return m_big_lock; }
|
||||
|
||||
unsigned syscall_count() const { return m_syscall_count; }
|
||||
void did_syscall() { ++m_syscall_count; }
|
||||
unsigned inode_faults() const { return m_inode_faults; }
|
||||
void did_inode_fault() { ++m_inode_faults; }
|
||||
unsigned zero_faults() const { return m_zero_faults; }
|
||||
void did_zero_fault() { ++m_zero_faults; }
|
||||
unsigned cow_faults() const { return m_cow_faults; }
|
||||
void did_cow_fault() { ++m_cow_faults; }
|
||||
|
||||
const ELFLoader* elf_loader() const { return m_elf_loader.ptr(); }
|
||||
|
||||
int icon_id() const { return m_icon_id; }
|
||||
|
@ -373,11 +364,6 @@ private:
|
|||
|
||||
int m_next_tid { 0 };
|
||||
|
||||
unsigned m_syscall_count { 0 };
|
||||
unsigned m_inode_faults { 0 };
|
||||
unsigned m_zero_faults { 0 };
|
||||
unsigned m_cow_faults { 0 };
|
||||
|
||||
RefPtr<ProcessTracer> m_tracer;
|
||||
OwnPtr<ELFLoader> m_elf_loader;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue