mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
SystemMonitor: Update the process memory map once every second
This commit is contained in:
parent
0e34b7d65e
commit
7970b594d5
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue