SystemMonitor: Update the process memory map once every second

This commit is contained in:
Andreas Kling 2019-12-02 17:36:10 +01:00
commit 7970b594d5
Notes: sideshowbarker 2024-07-19 10:59:08 +09:00
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;
};