1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

SystemMonitor: Update the process memory map once every second

This commit is contained in:
Andreas Kling 2019-12-02 17:36:10 +01:00
parent 0e34b7d65e
commit 7970b594d5
2 changed files with 11 additions and 0 deletions

View file

@ -2,6 +2,7 @@
#include <LibGUI/GWidget.h>
class CTimer;
class GTableView;
class ProcessMemoryMapWidget final : public GWidget {
@ -10,9 +11,11 @@ public:
virtual ~ProcessMemoryMapWidget() override;
void set_pid(pid_t);
void refresh();
private:
explicit ProcessMemoryMapWidget(GWidget* parent);
RefPtr<GTableView> m_table_view;
pid_t m_pid { -1 };
RefPtr<CTimer> m_timer;
};