3 Replies
      Latest reply on Dec 9, 2018 4:45 AM by eugenio79
      quellish Level 1 Level 1 (0 points)

        I see in Xcode 7 we now have the option to enable testability for profiling tests.


        Is there now a way we can profile unit tests with Instruments?

        • Re: Profiling Unit Tests
          kem Apple Staff Apple Staff (40 points)

          In the Test navigator (command-5), right click on any test and select "Profile [test name]". This will bring up Instruments and allow you to profile the specific test.

            • Re: Profiling Unit Tests
              quellish Level 1 Level 1 (0 points)


              Is AWESOME!

              • Re: Profiling Unit Tests
                eugenio79 Level 1 Level 1 (0 points)


                after following your instructions, when I start the time profiler and I try to record I have this error:


                The operation couldn’t be completed. Application "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest" is unknown to FrontBoard. : Failed to launch process with bundle identifier '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest'


                The Profile scheme has already Debug as Build Configuration.


                Any clues?