XCode has a number of built in profiling tools that can easily be used with local or prebuilt engines. This document is focused on creating flame graph charts, which is not a part of XCode but provides a useful way to look at aggregate performance. Compared to the Android Studio flame graph this one is a little wonky, but still useful.
https://github.com/lennet/FlameGraph
Click the red dot to begin and record as much profile data as you want, then press stop to conclude the trace.
swift run FlameGraph --html output.html
A new browser tab will open with the flame graph. It may require some zooming to be useful.