1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

ProfileViewer: Allow filtering samples in a specific time range

You can now select the time range you want on the profile timeline.
The tree view will update automatically as you alter the range.

Unfortunately this causes the treeview to collapse all of its nodes.
It would be nice to solve this somehow in the future so that nodes
can stay open.
This commit is contained in:
Andreas Kling 2019-12-14 19:10:12 +01:00
parent a3e7c99ffe
commit 3fd2304dad
4 changed files with 109 additions and 29 deletions

View file

@ -15,5 +15,11 @@ private:
ProfileTimelineWidget(Profile&, GWidget* parent);
u64 timestamp_at_x(int x) const;
Profile& m_profile;
bool m_selecting { false };
u64 m_select_start_time { 0 };
u64 m_select_end_time { 0 };
};