summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/TimelineTrack.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-11 20:29:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-12 00:03:39 +0200
commit3ed6c137df73b816216472834f4836d290df6c6a (patch)
treea853017a5d09a9e52b76072ee9d90b179e8b1b3f /Userland/DevTools/Profiler/TimelineTrack.cpp
parent4657c791433a5d5e3e286fd1a4b85a2478c6356e (diff)
downloadserenity-3ed6c137df73b816216472834f4836d290df6c6a.zip
Profiler: Parse and render signpost strings
The first perf_event argument to a PERF_EVENT_SIGNPOST is now interpreted as a string ID (in the profile strings set.) This allows us to generate signposts with custom strings. :^)
Diffstat (limited to 'Userland/DevTools/Profiler/TimelineTrack.cpp')
-rw-r--r--Userland/DevTools/Profiler/TimelineTrack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/TimelineTrack.cpp b/Userland/DevTools/Profiler/TimelineTrack.cpp
index 3d75d8ce7b..8b7158ba3a 100644
--- a/Userland/DevTools/Profiler/TimelineTrack.cpp
+++ b/Userland/DevTools/Profiler/TimelineTrack.cpp
@@ -135,7 +135,7 @@ void TimelineTrack::mousemove_event(GUI::MouseEvent& event)
constexpr int hoverable_padding = 2;
Gfx::IntRect hoverable_rect { x - hoverable_padding, frame_thickness(), hoverable_padding * 2, height() - frame_thickness() * 2 };
if (hoverable_rect.contains_horizontally(event.x())) {
- GUI::Application::the()->show_tooltip_immediately(String::formatted("Signpost {}, {}", signpost.arg1, signpost.arg2), this);
+ GUI::Application::the()->show_tooltip_immediately(String::formatted("Signpost {}, {}", signpost.signpost_string, signpost.arg2), this);
hovering_a_signpost = true;
return IterationDecision::Break;
}