1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

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.
This commit is contained in:
Andreas Kling 2019-12-29 12:28:32 +01:00
parent ffbe975ffc
commit 0d5e0e4cad
12 changed files with 51 additions and 0 deletions

View file

@ -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);