instruments dos not report correct counters on ios 13

Hi


I use instruments to profile CPU workload IPC and L1Dcache miss rate.

I have 2 iphoneXR phone, A: ios12.2, B: ios 13.0

I use Xcode11.0, 11.2.1 try to catch CPU IPC value.

I can get correct value on A phone, but cannot get correct value one B phone.

B phone's value is very very big. and cycles and instruments get almost the same value.

I guess there is some bug on ios13, please fix it.


BR

Replies

Hi there,


Can you try the new developer betas of iOS to see whether it reproduces for you?


Thanks,


Kacper

I hit similar issue when I collected instructions and cycles of chrome/safari with encounter in instrument when running some benchmark.

In macOS 10.14.3 the instructions and cycles are "327,676,280,611" and "313,530,696,961" for Safari. But in macOS 10.15.3 the instruments and cycles are "186,164,577,783,644,900,000,000" and "186,201,488,160,639,160,000,000" for Safari.

And the IPCs in these 2 different version macOS are also different, "1.0451" and "0.9998".


For another benchmark the data are "instructions: 473,398,789,785,837,500,000,000", "cycles: 473,195,886,015,914,200,000,000", "IPC: 1.0004" in macOS 10.15.3. And the data are "instrutions: 1,599,424,150,619", "cycles: 839,626,234,915", "IPC: 1.9049".


Why is there so big gap between there 2 macOS?


Note: Almost same score for same benchmark in different macOS.