#pragma once #include #include class GLabel; class GraphWidget; class MemoryStatsWidget final : public GWidget { C_OBJECT(MemoryStatsWidget) public: static MemoryStatsWidget* the(); virtual ~MemoryStatsWidget() override; void refresh(); private: MemoryStatsWidget(GraphWidget& graph, GWidget* parent); virtual void timer_event(CTimerEvent&) override; GraphWidget& m_graph; RefPtr m_user_physical_pages_label; RefPtr m_supervisor_physical_pages_label; RefPtr m_kmalloc_label; RefPtr m_kmalloc_count_label; RefPtr m_proc_memstat; };