The following article shows how to use Instruments to find the slow spots in your iOS and Mac apps:

https://swiftdevjournal.com/posts/cpu-profiler/

#Xcode