Search code examples
xcodeinstrumentsprofiler

How can I see the output of an OS X program being run via the Time Profiler in Instruments?


For some reason, my OS X app crashes when using the time profiler but not otherwise. I'd like to see the stderr and stdout output from the program to try to diagnose what's wrong. Any ideas?


Solution

  • As of Xcode 13 and 14, the process for viewing a command's output in Instruments has changed. You now need to add the "stdout/stderr" Instrument:

    adding the stdout/stderr instrument

    You can then click this instrument in the timeline to view the outputs:

    selecting the stdout/stderr instrument in the timeline