mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +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
|
@ -34,6 +34,12 @@ public:
|
|||
InodeFaults,
|
||||
ZeroFaults,
|
||||
CowFaults,
|
||||
FileReadBytes,
|
||||
FileWriteBytes,
|
||||
UnixSocketReadBytes,
|
||||
UnixSocketWriteBytes,
|
||||
IPv4SocketReadBytes,
|
||||
IPv4SocketWriteBytes,
|
||||
__Count
|
||||
};
|
||||
|
||||
|
@ -68,6 +74,12 @@ private:
|
|||
unsigned inode_faults;
|
||||
unsigned zero_faults;
|
||||
unsigned cow_faults;
|
||||
unsigned unix_socket_read_bytes;
|
||||
unsigned unix_socket_write_bytes;
|
||||
unsigned ipv4_socket_read_bytes;
|
||||
unsigned ipv4_socket_write_bytes;
|
||||
unsigned file_read_bytes;
|
||||
unsigned file_write_bytes;
|
||||
float cpu_percent;
|
||||
int icon_id;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue