Instruments: Trace file had no SwiftUI data

using Version 26.2 (17C52) I often get

"Trace file had no SwiftUI data"

why so?

Hi there!

Are you perhaps recording an infinite hang of an app, or is the app quit before the recording is stopped?

There are a few edge cases where data might not be captured and I'm wondering if it's one of these.

Kacper

I have seen this when quitting the app but in this case:

I can run a few small runs where the views are light but once i get to a certain point and stop the recording Instruments hangs forever in Transferring data.

Also what is the "Panic Stop" button? I can't find any documentation on it

Thank you for your post. Very interesting to me because my recent instrument adventures.

Although I am not an expert in Instruments, I recently discovered that you can create a blank template and add individual instruments like SwiftUI by tapping the plus icon. Is that what you are using for your SwiftUI data, and you are not receiving it that way? What template are you using that indicates there is no SwiftUI data on the trace?

Could you please provide me with a detailed step-by-step guide to reproduce the issue, including the template and individual instruments you are adding to the instruments? Additionally, please provide any relevant background information about the application you are profiling.

Thanks,

Albert Pascual
  Worldwide Developer Relations.

Steps:

In Xcode, choose Product → Profile

Use the standard SwiftUI App template

Keep the template settings at their defaults

Start a profiling session

If I stop the session while the app is still on the home screen, everything usually completes normally

Start another profiling session and interact with the app a bit more

Observed behavior:

Occasionally, after running a longer session, I see a message related to ktrace

Even after this appears, I can still sometimes run another short profiling session successfully

In other cases, I see a different message indicating that data could not be collected

I have also seen a message indicating that no SwiftUI data was available (I don’t currently have a screenshot for this case)

I have screenshots but the forum sensitive filter is flagging them

Instruments: Trace file had no SwiftUI data
 
 
Q