1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00
serenity/Applications/ProcessManager/MemoryStatsWidget.h

23 lines
548 B
C++

#pragma once
#include <LibGUI/GWidget.h>
#include <LibCore/CFile.h>
class GLabel;
class MemoryStatsWidget final : public GWidget {
public:
explicit MemoryStatsWidget(GWidget* parent);
virtual ~MemoryStatsWidget() override;
void refresh();
private:
virtual void timer_event(CTimerEvent&) override;
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;
};