summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/ProcFS.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-29 12:45:58 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-29 12:45:58 +0100
commitc74cde918a5ef031d5f01c663212b1c909564cf4 (patch)
tree2f0b13a03c6477053d418c47ba8b9189bb7cd5d9 /Kernel/FileSystem/ProcFS.cpp
parent0d5e0e4cad512ebdcebc1c9a9171c412fcabbd3b (diff)
downloadserenity-c74cde918a5ef031d5f01c663212b1c909564cf4.zip
Kernel+SystemMonitor: Expose amount of per-process clean inode memory
This is memory that's loaded from an inode (file) but not modified in memory, so still identical to what's on disk. This kind of memory can be freed and reloaded transparently from disk if needed.
Diffstat (limited to 'Kernel/FileSystem/ProcFS.cpp')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 00aacacfaf..a3ea6c78ae 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -754,6 +754,7 @@ Optional<KBuffer> procfs$all(InodeIdentifier)
process_object.add("amount_virtual", (u32)process.amount_virtual());
process_object.add("amount_resident", (u32)process.amount_resident());
process_object.add("amount_dirty_private", (u32)process.amount_dirty_private());
+ process_object.add("amount_clean_inode", (u32)process.amount_clean_inode());
process_object.add("amount_shared", (u32)process.amount_shared());
process_object.add("amount_purgeable_volatile", (u32)process.amount_purgeable_volatile());
process_object.add("amount_purgeable_nonvolatile", (u32)process.amount_purgeable_nonvolatile());