ladybird/Applications/SystemMonitor/MemoryStatsWidget.h
Sergey Bugaev cbdda91065 ProcessManager: Rename it to SystemMonitor
This is a more appropriate name now that it does a lot
more than just manage processes ^)
2019-08-14 14:28:45 +02:00

26 lines
604 B
C++

#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;
};