diff options
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 34aa556800..dd7f6f1f71 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2502,6 +2502,16 @@ void Process::die() } } +size_t Process::amount_dirty_private() const +{ + size_t amount = 0; + for (auto& region : m_regions) { + if (!region.is_shared()) + amount += region.amount_dirty(); + } + return amount; +} + size_t Process::amount_virtual() const { size_t amount = 0; |