mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
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. :^)
This commit is contained in:
parent
183f7c9830
commit
9da121f837
9 changed files with 253 additions and 201 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue