I would like to check CPU counters by Instruments for A17 Pro (iPhone 15 Pro, iOS 17.0), but it shows unsupported on 'Recording Options' -> 'CPU Name'. Anyone meet the same situation? or it is happened only for me?
I tried these versions of Instruments with different iOS version.
iOS 17.0
(1) 15.0 (15A240d)
iOS 17.1
(1) 15.0.1 (15A507)
iOS 17.4
(1) 15.3 (15F31d)
iOS 17.5
(1) 15.3 (15F31d)
-
Related post by OP: Is latest Instruments not support A16 for CPU counters?HangarRash– HangarRash2023年10月27日 17:04:47 +00:00Commented Oct 27, 2023 at 17:04
1 Answer 1
starting with iOS 17 and Xcode 15, Xcode copies files from /Applications/Xcode.app/Contents/Resources/CoreDeviceDDIs/iOS_DDI.dmg to the device. This image doesn't include the CPU database, leading to Instruments.app reporting a lack of CPU support.
kperfdata.framework still works on iOS 17. So if you can copy the necessary files to either /usr/share/kpep/ or /usr/local/share/kpep/, Instruments.app should continue to work as expected. But the regular app doesn't have write access to these two folders. Hope Apple can fix it.
Here is a list of A17 pro's PMCs event-key that I extracted from XNU kernel build https://gist.github.com/junjie1475/897e2733a345d5a0bcff56e95c94c4bf.
1 Comment
Explore related questions
See similar questions with these tags.