diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-02 20:26:19 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-02 20:26:19 +0200 |
commit | 9da121f837df827b639b7c2e227d05556c4f6a68 (patch) | |
tree | 0f6a00e5ef61680c9ada2661e9bc44ef123a432e /Applications/SystemMonitor/MemoryStatsWidget.h | |
parent | 183f7c9830c8d2d6e0f1654e4394a9d613ecb4ad (diff) | |
download | serenity-9da121f837df827b639b7c2e227d05556c4f6a68.zip |
SystemMonitor: Make all tabs except the process table lazily loaded
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. :^)
Diffstat (limited to 'Applications/SystemMonitor/MemoryStatsWidget.h')
-rw-r--r-- | Applications/SystemMonitor/MemoryStatsWidget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Applications/SystemMonitor/MemoryStatsWidget.h b/Applications/SystemMonitor/MemoryStatsWidget.h index d63f338836..f2ce831188 100644 --- a/Applications/SystemMonitor/MemoryStatsWidget.h +++ b/Applications/SystemMonitor/MemoryStatsWidget.h @@ -9,12 +9,15 @@ class GraphWidget; class MemoryStatsWidget final : public GWidget { C_OBJECT(MemoryStatsWidget) public: - MemoryStatsWidget(GraphWidget& graph, GWidget* parent); + static MemoryStatsWidget* the(); + virtual ~MemoryStatsWidget() override; void refresh(); private: + MemoryStatsWidget(GraphWidget& graph, GWidget* parent); + virtual void timer_event(CTimerEvent&) override; GraphWidget& m_graph; |