January 26th, 2016
I learned about this tip from an Apple engineer on Apple’s developer forums and felt like sharing it here. Xcode 7 lets you profile unit tests in Instruments, using the following steps:
At this point Instruments will launch. You’ll be able to choose an instrument and profile tests the same way you profile applications in Instruments.