mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
ProcessManager: Show some basic system memory stats below the process table.
This really improves the feeling of "system overview" :^)
This commit is contained in:
parent
8017c1e17c
commit
37388b311f
9 changed files with 158 additions and 9 deletions
21
Applications/ProcessManager/MemoryStatsWidget.h
Normal file
21
Applications/ProcessManager/MemoryStatsWidget.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GLabel;
|
||||
|
||||
class MemoryStatsWidget final : public GWidget {
|
||||
public:
|
||||
explicit MemoryStatsWidget(GWidget* parent);
|
||||
virtual ~MemoryStatsWidget() override;
|
||||
|
||||
void refresh();
|
||||
|
||||
private:
|
||||
virtual void timer_event(GTimerEvent&) override;
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
GLabel* m_user_physical_pages_label { nullptr };
|
||||
GLabel* m_supervisor_physical_pages_label { nullptr };
|
||||
GLabel* m_kmalloc_label { nullptr };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue