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

Profiler: Parse and paint profile signpost events :^)

Signposts generated by perf_event(PERF_EVENT_SIGNPOST) now show up in
profile timelines, and if you hover them you get a tooltip with the two
arguments passed with the event.
This commit is contained in:
Andreas Kling 2021-08-11 20:05:41 +02:00
parent 9ae8cd823c
commit 00b11d7577
4 changed files with 81 additions and 5 deletions

View file

@ -24,8 +24,14 @@ public:
void set_scale(float);
private:
float column_width() const;
template<typename Callback>
void for_each_signpost(Callback);
virtual void event(Core::Event&) override;
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousemove_event(GUI::MouseEvent&) override;
struct HistogramInputs {
bool operator==(HistogramInputs const&) const = default;