diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-01 17:36:06 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-01 17:40:27 +0100 |
commit | 5a45376180fe589622a169828bb030eb929a509d (patch) | |
tree | a47ff74abdda552b28e7cb661c7c839fac9061a5 /Kernel/Net/LocalSocket.h | |
parent | a18aa8fd5f65708d840c5ff8c13f673ae4c8b079 (diff) | |
download | serenity-5a45376180fe589622a169828bb030eb929a509d.zip |
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.
Diffstat (limited to 'Kernel/Net/LocalSocket.h')
-rw-r--r-- | Kernel/Net/LocalSocket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h index bd529933f1..7677a25e8d 100644 --- a/Kernel/Net/LocalSocket.h +++ b/Kernel/Net/LocalSocket.h @@ -36,7 +36,8 @@ private: virtual bool is_local() const override { return true; } bool has_attached_peer(const FileDescription&) const; static Lockable<InlineLinkedList<LocalSocket>>& all_sockets(); - DoubleBuffer& buffer_for(FileDescription&); + DoubleBuffer& receive_buffer_for(FileDescription&); + DoubleBuffer& send_buffer_for(FileDescription&); // An open socket file on the filesystem. RefPtr<FileDescription> m_file; |