diff options
Diffstat (limited to 'Applications/SystemMonitor/MemoryStatsWidget.h')
-rw-r--r-- | Applications/SystemMonitor/MemoryStatsWidget.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Applications/SystemMonitor/MemoryStatsWidget.h b/Applications/SystemMonitor/MemoryStatsWidget.h new file mode 100644 index 0000000000..e3912b9b94 --- /dev/null +++ b/Applications/SystemMonitor/MemoryStatsWidget.h @@ -0,0 +1,25 @@ +#pragma once + +#include <LibCore/CFile.h> +#include <LibGUI/GWidget.h> + +class GLabel; +class GraphWidget; + +class MemoryStatsWidget final : public GWidget { +public: + MemoryStatsWidget(GraphWidget& graph, GWidget* parent); + virtual ~MemoryStatsWidget() override; + + void refresh(); + +private: + virtual void timer_event(CTimerEvent&) override; + + GraphWidget& m_graph; + GLabel* m_user_physical_pages_label { nullptr }; + GLabel* m_supervisor_physical_pages_label { nullptr }; + GLabel* m_kmalloc_label { nullptr }; + GLabel* m_kmalloc_count_label { nullptr }; + CFile m_proc_memstat; +}; |