Closed gadgadskiy closed 1 year ago
It looks like the biggest possible "cpuUsage" value for this device is 5, which equals 200%. But it's just my research; I didn't find any helpful info about it. So I'm unsure if I can get the correct percentages as cpuUsage * 40.
Thank, yes, that's it.
Smartphone
I'm using the following command to get CPU usage while running a specific app on different models of iPhone:
pyidevice instruments sysmontap -b <my_bundle> --proc_filter cpuUsage --processes --udid <my_udid> --format flush
For iPhones v7 or later, it returns adequate values. But for iPhone 6, values are unbelievably low. During the long monitoring, the biggest value was 4.59 (and most of them are in 0.5...2.5). But I can see, via Xcode, that the real percentage usage of my app is up to 40%.What strange values are returned for iPhone 6? How to convert them to adequate percentages?