mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
Profiler: Avoid copies / String construction when parsing profile (#7096)
Use sv literal suffix to construct StringViews at compile time, and make sure to reference array items by const reference.
This commit is contained in:
parent
5a7db74c52
commit
c63761a341
2 changed files with 18 additions and 18 deletions
|
@ -72,8 +72,8 @@ void TimelineTrack::paint_event(GUI::PaintEvent& event)
|
|||
continue;
|
||||
|
||||
if (!m_profile.show_scheduler() && !event.frames.is_empty()) {
|
||||
auto top_frame = event.frames[event.frames.size() - 1];
|
||||
if (top_frame.symbol == "Kernel::Scheduler::yield()")
|
||||
const auto& top_frame = event.frames[event.frames.size() - 1];
|
||||
if (top_frame.symbol == "Kernel::Scheduler::yield()"sv)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue