1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 11:45:06 +00:00
serenity/Applications/ProcessManager/MemoryStatsWidget.h
Andreas Kling e9c0f4567d Kernel+ProcessManager: Expose the number of kmalloc/kfree calls.
This will be very helpful in tracking down unwanted kmalloc traffic. :^)
2019-04-15 19:43:12 +02:00

22 lines
548 B
C++

#pragma once
#include <LibGUI/GWidget.h>
class GLabel;
class MemoryStatsWidget final : public GWidget {
public:
explicit MemoryStatsWidget(GWidget* parent);
virtual ~MemoryStatsWidget() override;
void refresh();
private:
virtual void timer_event(CTimerEvent&) override;
virtual void paint_event(GPaintEvent&) override;
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 };
};