Hi, I need help to get Instruments running to profile my application. I tried to profile my main app (Qt-5.15-Framework, c++, Intel-arch only) from Xcode. My app starts and Instruments runs time profiler or Leaks for about 15 seconds and the quits. No crash, no message nothing.
This has been happening for a while on my Mac Studio M1 Max running macOS 14.7.6 and Xcode 15.4 IDE with a toolchain from Xcode 14.3 for the qmake (qt) project. However, this also happens if i set up a new vanilla Swift UI project from scratch wihtout any Qt stuff.
In addition to the Mac Studio I also have Mac Book Pro M4 running macOS 15.5 and Xcode 16.4. On that machine I get the same results, no matter if I try Instruments on my qt project or a vanilla SwiftUI project.
Also it does not make a difference if I change the toolchain with:
sudo xcode-select -s /Applications/Xcode_143.app
or
sudo xcode-select -s /Applications/Xcode_164.app.
Same results in either case.
I also tried switching to Debug build in the editing the scheme for profiling, but got no better results.
I also tried to lauch Instruments from Xcode using the Open Developer Tool menu entry, but got no better results.
When I start Instruments first, run my program in Xcode and attach to it, I get the same results.
Do you have any advice what to check for or to setup, maybe in signing or such? I am probably missing something basic.
Thanks in advance
How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here
Cannot get Instruments to profile my apps
Hi there,
Is it Instruments quitting or your application that Instruments is targeting? Does it happen if you run a trace only with Time Profiler, without Leaks?
Instruments is quitting. The application keeps running. I have tried to run either Time Profiler or Leaks, with time profiler Instruments quits after 2-3 seconds. with Leaks I get past the first 10 seconds and get a green check mark and 2-4 seconds later Instruments quits.
Is Instruments crashing? If that is the case, I would recommend to file a feedback with a crash report (or attach it here). You can usually find it by browsing Crash Reports in Console.app.
Kacper
As I told in the OP, Instruments quits. No crash report in console app. I checked again. No messages in syslog as far as I could tell.