Reputation: 1
I'm trying to calculate CPU usage of my app while launching using measure block with XCTCPUMetric and XCTest framework in iOS.
XCTCPUMetric is giving CPU Time in seconds. I want to calculate CPU usage in percentage. Is it possible? If so, please help in getting CPU usage while launching or using my app.
Have explored if 'CPU instructions retired' and 'CPU Cycles' values can help in calculating CPU usage but didn't find any clue.
Upvotes: 0
Views: 7