cmyr / cargo-instruments

A cargo plugin to generate Xcode Instruments trace files
MIT License
679 stars 34 forks source link

Capture stdout from xctrace #80

Closed hans-olav closed 2 years ago

hans-olav commented 2 years ago

When profiling an app I kept getting "Failed instruments errored: blank" (ie. no reason for the error). Turns out xctrace was printing "Target app exited" (there was a problem with my command line) to stdOUT and nothing to stdERR.

Looks like xctrace prints the interesting information to stdout instead of stderr in at least some scenarios, so including the output of both on failure.