mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
ProcessManager: Rename it to SystemMonitor
This is a more appropriate name now that it does a lot more than just manage processes ^)
This commit is contained in:
parent
c7040cee62
commit
cbdda91065
23 changed files with 9 additions and 9 deletions
25
Applications/SystemMonitor/MemoryStatsWidget.h
Normal file
25
Applications/SystemMonitor/MemoryStatsWidget.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue