summaryrefslogtreecommitdiff
path: root/Libraries/LibCore
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibCore')
-rw-r--r--Libraries/LibCore/CProcessStatisticsReader.cpp7
-rw-r--r--Libraries/LibCore/CProcessStatisticsReader.h6
2 files changed, 12 insertions, 1 deletions
diff --git a/Libraries/LibCore/CProcessStatisticsReader.cpp b/Libraries/LibCore/CProcessStatisticsReader.cpp
index 39f8db097e..39db980ee8 100644
--- a/Libraries/LibCore/CProcessStatisticsReader.cpp
+++ b/Libraries/LibCore/CProcessStatisticsReader.cpp
@@ -53,6 +53,12 @@ HashMap<pid_t, CProcessStatistics> CProcessStatisticsReader::get_all()
thread.inode_faults = thread_object.get("inode_faults").to_u32();
thread.zero_faults = thread_object.get("zero_faults").to_u32();
thread.cow_faults = thread_object.get("cow_faults").to_u32();
+ thread.unix_socket_read_bytes = thread_object.get("unix_socket_read_bytes").to_u32();
+ thread.unix_socket_write_bytes = thread_object.get("unix_socket_write_bytes").to_u32();
+ thread.ipv4_socket_read_bytes = thread_object.get("ipv4_socket_read_bytes").to_u32();
+ thread.ipv4_socket_write_bytes = thread_object.get("ipv4_socket_write_bytes").to_u32();
+ thread.file_read_bytes = thread_object.get("file_read_bytes").to_u32();
+ thread.file_write_bytes = thread_object.get("file_write_bytes").to_u32();
process.threads.append(move(thread));
});
@@ -78,4 +84,3 @@ String CProcessStatisticsReader::username_from_uid(uid_t uid)
return (*it).value;
return String::number(uid);
}
-
diff --git a/Libraries/LibCore/CProcessStatisticsReader.h b/Libraries/LibCore/CProcessStatisticsReader.h
index bb6da21d31..05e9e9659e 100644
--- a/Libraries/LibCore/CProcessStatisticsReader.h
+++ b/Libraries/LibCore/CProcessStatisticsReader.h
@@ -12,6 +12,12 @@ struct CThreadStatistics {
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;
String state;
String priority;
};