summaryrefslogtreecommitdiff
path: root/Libraries
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 /Libraries
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 'Libraries')
-rw-r--r--Libraries/LibCore/CProcessStatisticsReader.cpp1
-rw-r--r--Libraries/LibCore/CProcessStatisticsReader.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibCore/CProcessStatisticsReader.cpp b/Libraries/LibCore/CProcessStatisticsReader.cpp
index 4e0adc8e13..cfd8f0b40c 100644
--- a/Libraries/LibCore/CProcessStatisticsReader.cpp
+++ b/Libraries/LibCore/CProcessStatisticsReader.cpp
@@ -39,6 +39,7 @@ HashMap<pid_t, CProcessStatistics> CProcessStatisticsReader::get_all()
process.amount_resident = process_object.get("amount_resident").to_u32();
process.amount_shared = process_object.get("amount_shared").to_u32();
process.amount_dirty_private = process_object.get("amount_dirty_private").to_u32();
+ process.amount_clean_inode = process_object.get("amount_clean_inode").to_u32();
process.amount_purgeable_volatile = process_object.get("amount_purgeable_volatile").to_u32();
process.amount_purgeable_nonvolatile = process_object.get("amount_purgeable_nonvolatile").to_u32();
process.icon_id = process_object.get("icon_id").to_int();
diff --git a/Libraries/LibCore/CProcessStatisticsReader.h b/Libraries/LibCore/CProcessStatisticsReader.h
index 34b353d85f..a7b740d8f9 100644
--- a/Libraries/LibCore/CProcessStatisticsReader.h
+++ b/Libraries/LibCore/CProcessStatisticsReader.h
@@ -40,6 +40,7 @@ struct CProcessStatistics {
size_t amount_resident;
size_t amount_shared;
size_t amount_dirty_private;
+ size_t amount_clean_inode;
size_t amount_purgeable_volatile;
size_t amount_purgeable_nonvolatile;
int icon_id;