diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-29 12:28:32 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-29 12:28:32 +0100 |
commit | 0d5e0e4cad512ebdcebc1c9a9171c412fcabbd3b (patch) | |
tree | a2de0fd9c829c96cd564413cae634319fb227ff8 /Kernel/VM/Region.h | |
parent | ffbe975ffc0e1a442247c5ff0a62b89aad9ac0a5 (diff) | |
download | serenity-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 'Kernel/VM/Region.h')
-rw-r--r-- | Kernel/VM/Region.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h index f9879c84c2..428e29feb3 100644 --- a/Kernel/VM/Region.h +++ b/Kernel/VM/Region.h @@ -103,6 +103,7 @@ public: size_t amount_resident() const; size_t amount_shared() const; + size_t amount_dirty() const; bool should_cow(size_t page_index) const; void set_should_cow(size_t page_index, bool); |