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