mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
Kernel: Provide consistent memory stats in ProcFS
We should take the MM lock when gathering all the statistics that we need so that the values are consistent.
This commit is contained in:
parent
de6a4d49b8
commit
d3e6cdf21f
2 changed files with 18 additions and 4 deletions
|
@ -131,6 +131,8 @@ public:
|
|||
|
||||
unsigned user_physical_pages() const { return m_user_physical_pages; }
|
||||
unsigned user_physical_pages_used() const { return m_user_physical_pages_used; }
|
||||
unsigned user_physical_pages_committed() const { return m_user_physical_pages_committed; }
|
||||
unsigned user_physical_pages_uncommitted() const { return m_user_physical_pages_uncommitted; }
|
||||
unsigned super_physical_pages() const { return m_super_physical_pages; }
|
||||
unsigned super_physical_pages_used() const { return m_super_physical_pages_used; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue