1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

ProfileViewer: Add a timeline widget for a visual view of the profile

Userspace stack frames are in blue, kernel stack frames in red :^)
This commit is contained in:
Andreas Kling 2019-12-14 18:44:29 +01:00
parent 46a57c7f59
commit a3e7c99ffe
6 changed files with 121 additions and 16 deletions

View file

@ -0,0 +1,19 @@
#include <LibGUI/GFrame.h>
class Profile;
class ProfileTimelineWidget final : public GFrame {
C_OBJECT(ProfileTimelineWidget)
public:
virtual ~ProfileTimelineWidget() override;
private:
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual void mousemove_event(GMouseEvent&) override;
virtual void mouseup_event(GMouseEvent&) override;
ProfileTimelineWidget(Profile&, GWidget* parent);
Profile& m_profile;
};