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:
parent
46a57c7f59
commit
a3e7c99ffe
6 changed files with 121 additions and 16 deletions
19
DevTools/ProfileViewer/ProfileTimelineWidget.h
Normal file
19
DevTools/ProfileViewer/ProfileTimelineWidget.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue