Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Development: Is there a way to read .trace files from command prompt without using instruments

I am trying to do some performance testing for my application and am looking to monitor its certain metrics, specifically cpu usage amongst others. I want to make the process completely automated. I am able to create the .trace file and am looking for a solution to get meaningful information from the trace file. I want to do this on non jail broken devices so using top too is not feasible

Thanks for any pointers for finding cpu usage on non jail broken devices in an automated fashion.

-Kshitiz

like image 600
Kshitiz Gupta Avatar asked Feb 15 '12 12:02

Kshitiz Gupta


1 Answers

You can run Instruments to import the trace file and export it as CSV for analysis by a script. It's not strictly 100% command-line, but if you automate the Instruments export it will be close.

Or, try DTrace, but I'm not sure if that supports iOS trace formats.

like image 97
Scott A Avatar answered Nov 01 '22 23:11

Scott A