Profiler: Always use FlyString const&'s in ProfileNode construction

No need to copy and move them around, just to pass them as a
`String const&` to the constructor.

We still end up copying it to a normal String in the end though...
This commit is contained in:
Hendiadyoin1 2021-12-22 16:51:04 +01:00 committed by Brian Gianforcaro
commit 071d72b494
Notes: sideshowbarker 2024-07-17 22:19:52 +09:00
2 changed files with 6 additions and 6 deletions

View file

@ -563,7 +563,7 @@ ProfileNode::ProfileNode(Process const& process)
{
}
ProfileNode::ProfileNode(Process const& process, const String& object_name, String symbol, FlatPtr address, u32 offset, u64 timestamp, pid_t pid)
ProfileNode::ProfileNode(Process const& process, FlyString const& object_name, String symbol, FlatPtr address, u32 offset, u64 timestamp, pid_t pid)
: m_process(process)
, m_symbol(move(symbol))
, m_pid(pid)