CPU Profiling with instruments fails to start

When trying to profile any process with the Instruments CPU Profiler I get this message: (Before run started) No allocated PMI record.

Not sure what to do here. I tried other instruments like time profile and that works fine so not sure what to do here... Didn't find any people having similar issues when googling so I'm hoping someone here can help me out.

Im using a m1 max 14 inch macbook pro with macOS 12.3 and instruments 13.0 (13A1030d)

Answered by Developer Tools Engineer in 707768022

Hi Ruben-elk!

We believe that this issue should be fixed in Instruments 13.3 (currently stable shipping version). Could you please try that out and let us know if it works for you?

Best,

Kacper

Accepted Answer

Hi Ruben-elk!

We believe that this issue should be fixed in Instruments 13.3 (currently stable shipping version). Could you please try that out and let us know if it works for you?

Best,

Kacper

Unfortunately, this issue is still happening in Instruments 14.0 (14A309). I'm unable to profile my app.

Please verify this issue, we are stuck in here! @Kacper

What does the 'PMI' mean, by the way?

Met the same problem for xcode 14.0.1. Anything I did wrong? Or is it a regression?

I'm having this problem with Instruments 14.0.1 (14A400).

I can't profile my App.

iPhone 14 Pro Max

iOS 16.1

Same problem with instruments Version 14.1 (14B47b) iOS 16.1.2 iPhone 14 Pro Max

Ditto: Same problem with instruments Version 14.1 (14B47b) iOS 16.1.2 iPhone 14 Pro Max

Same problem with instruments Version 15.0 (15A240d) iOS 17.0 iPhone 12 Pro Max

Same problem Instruments Version 15.0 (15A240d) iPhone 15 Pro 17.0.2

Same Problem on Instruments Version 15.0 (15A240d). iPhone 11 Pro 17.0.2

Same Problem on Instruments Version 15.1 (15C5042i). iPhone 15 Pro iOS 17.2 (21C5040g)

Same problem on Instruments 15.0.1 (15A507). iPhone 13 iOS 17.1.2. Mac M1 2020, Sonoma 14.1.1

Same problem on Instruments Version 15.0.1 (15A507), iPhone 14 Pro iOS 17.0.3 Mac M2 Pro 2023, Sonoma 14.1.2 (23B92).

Any workaround?

Same problem on Instruments Version Version 15.0.1 (15A507), iPhone 15 Pro Max iOS 17.1.1, M1 MBP Ventura (13.6.2 (22G320)), and Intel MBP (Sonoma 14.0).

Has anyone filed a bug about this? If so, please post your bug number here. If not, please do so.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

It's 12/12/2023 , Xcode Version 15.1 (15C65), and still. Sigh...

This bug can be reproduced with Xcode 15.2 with my iPhone 14 Pro Max, please take a look ...

It's a very interesting situation - I encountered this error on my iPad running iOS 17.2.1, while my iPhone, which was on iOS 16.0.2, did not have this issue. However, after updating my iPhone to iOS 17.2.1, it started experiencing the same problem. This suggests that the issue might be related to processor profiling in the latest iOS versions.

Still an issue with Xcode 15.2 with my iPhone 15 Pro Max iOS 17.3

Same issue, MacOS 13.5 Instruments 2 (15C500b) with iOS 17.3 iPhone Xr. FB13595651

Well this is annoying. Just tried to profile for the first time in ages and it fails with this issue on both tvOS and iOS.

And this issue goes back a year, with no apparent solution.

How exactly is one supposed to develop when a basic tool like this is not working for so many people....?

michael101 wrote:

FB13595651

Thanks for filing that.

AFAICT this bug was fixed but the patch came unstuck )-: We’re tracking the new fix via michael101’s bug report. Unfortunately that fix hasn’t yet made it into any public or seeded release of iOS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@eskimo Is it possible to download the older/fixed version of instruments somewhere? And would it work with newer versions of Xcode?

Is it possible to download the older/fixed version of instruments somewhere?

That wouldn’t help. This is an issue in the OS itself.

Having said that:

  • Instruments is part of Xcode, and you can get older versions of Xcode from the Downloads area on the developer web site.

  • I generally recommend against trying to play mix’n’match like this.

But…


Have you tried with the latest iOS 17.5b1 seed (21F5048f)? I’ve good reason to believe that it’ll fix this problem.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I haven't tried the 17.5b1 seed yet, but confirming it's still an issue on iOS 17.4 with Xcode 15.3. Time profiler works, but not CPU profiler with PMIs.

CPU Profiling with instruments fails to start
 
 
Q