mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
9da121f837
We now use GLazyWidget for all the secondary tabs, which makes the program start up way faster than before. There's a noticeable delay when you click on the "PCI Devices" tab for the first time, but that's definitely better than always eating that delay before seeing a window at all. :^)
29 lines
663 B
C++
29 lines
663 B
C++
#pragma once
|
|
|
|
#include <LibCore/CFile.h>
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
class GLabel;
|
|
class GraphWidget;
|
|
|
|
class MemoryStatsWidget final : public GWidget {
|
|
C_OBJECT(MemoryStatsWidget)
|
|
public:
|
|
static MemoryStatsWidget* the();
|
|
|
|
virtual ~MemoryStatsWidget() override;
|
|
|
|
void refresh();
|
|
|
|
private:
|
|
MemoryStatsWidget(GraphWidget& graph, GWidget* parent);
|
|
|
|
virtual void timer_event(CTimerEvent&) override;
|
|
|
|
GraphWidget& m_graph;
|
|
RefPtr<GLabel> m_user_physical_pages_label;
|
|
RefPtr<GLabel> m_supervisor_physical_pages_label;
|
|
RefPtr<GLabel> m_kmalloc_label;
|
|
RefPtr<GLabel> m_kmalloc_count_label;
|
|
RefPtr<CFile> m_proc_memstat;
|
|
};
|