mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +00:00
Kernel+SystemMonitor: Log amounts of I/O per thread
This patch adds these I/O counters to each thread: - (Inode) file read bytes - (Inode) file write bytes - Unix socket read bytes - Unix socket write bytes - IPv4 socket read bytes - IPv4 socket write bytes These are then exposed in /proc/all and seen in SystemMonitor.
This commit is contained in:
parent
a18aa8fd5f
commit
5a45376180
10 changed files with 171 additions and 17 deletions
|
@ -725,6 +725,12 @@ Optional<KBuffer> procfs$all(InodeIdentifier)
|
|||
thread_object.add("inode_faults", thread.inode_faults());
|
||||
thread_object.add("zero_faults", thread.zero_faults());
|
||||
thread_object.add("cow_faults", thread.cow_faults());
|
||||
thread_object.add("file_read_bytes", thread.file_read_bytes());
|
||||
thread_object.add("file_write_bytes", thread.file_write_bytes());
|
||||
thread_object.add("unix_socket_read_bytes", thread.unix_socket_read_bytes());
|
||||
thread_object.add("unix_socket_write_bytes", thread.unix_socket_write_bytes());
|
||||
thread_object.add("ipv4_socket_read_bytes", thread.ipv4_socket_read_bytes());
|
||||
thread_object.add("ipv4_socket_write_bytes", thread.ipv4_socket_write_bytes());
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue