title: How to automatically export Instruments data to CSV
body: <p>I'm looking at a way to automate the gathering of iOS memory usage.  So far, I've been using the Instruments cli to do this:</p>
  
  <pre><code>instruments -w &lt;ID&gt; -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Activity Monitor.tracetemplate" -l 30000
  </code></pre>
  
  <p>My problem now is exporting the data to be parsed.  I noticed in the Instruments GUI there is an option to export to CSV, however there doesn't appear to be anything like this for the CLI.</p>
  
  <p>I unzipped the .trace package that the Instruments CLI outputs and found a lot of binary data, which isn't too useful.</p>
  
  <p>Is it possible to export this data or convert it to a parsable format?</p>
  
  <p>Thanks</p>