summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-29 12:28:32 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-29 12:28:32 +0100
commit0d5e0e4cad512ebdcebc1c9a9171c412fcabbd3b (patch)
treea2de0fd9c829c96cd564413cae634319fb227ff8 /Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
parentffbe975ffc0e1a442247c5ff0a62b89aad9ac0a5 (diff)
downloadserenity-0d5e0e4cad512ebdcebc1c9a9171c412fcabbd3b.zip
Kernel+SystemMonitor: Expose amount of per-process dirty private memory
Dirty private memory is all memory in non-inode-backed mappings that's process-private, meaning it's not shared with any other process. This patch exposes that number via SystemMonitor, giving us an idea of how much memory each process is responsible for all on its own.
Diffstat (limited to 'Applications/SystemMonitor/ProcessMemoryMapWidget.cpp')
-rw-r--r--Applications/SystemMonitor/ProcessMemoryMapWidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
index 2a7955e13c..b6e1b7a6d5 100644
--- a/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
+++ b/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
@@ -18,6 +18,7 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget(GWidget* parent)
});
pid_vm_fields.empend("size", "Size", TextAlignment::CenterRight);
pid_vm_fields.empend("amount_resident", "Resident", TextAlignment::CenterRight);
+ pid_vm_fields.empend("amount_dirty", "Dirty", TextAlignment::CenterRight);
pid_vm_fields.empend("Access", TextAlignment::CenterLeft, [](auto& object) {
StringBuilder builder;
if (!object.get("user_accessible").to_bool())