diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-11 20:05:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-12 00:03:38 +0200 |
commit | 00b11d757710ea3768373bb34745af3e31352efc (patch) | |
tree | 4b4971033bac248c404b2501f9a4084e72fc5a6b /Userland/DevTools/Profiler/TimelineTrack.h | |
parent | 9ae8cd823cf43106d37afd8d4cd4bcb515a56f91 (diff) | |
download | serenity-00b11d757710ea3768373bb34745af3e31352efc.zip |
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.
Diffstat (limited to 'Userland/DevTools/Profiler/TimelineTrack.h')
-rw-r--r-- | Userland/DevTools/Profiler/TimelineTrack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/DevTools/Profiler/TimelineTrack.h b/Userland/DevTools/Profiler/TimelineTrack.h index 5a9ded5cc7..fb74dde0b6 100644 --- a/Userland/DevTools/Profiler/TimelineTrack.h +++ b/Userland/DevTools/Profiler/TimelineTrack.h @@ -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; |