• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
automatically export trace data from instruments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

automatically export trace data from instruments


  • Subject: automatically export trace data from instruments
  • From: Brian Gerstle <email@hidden>
  • Date: Sun, 23 Feb 2014 21:05:52 -0500

I'm trying to automate the exporting of trace data from Instruments, but I've hit a couple roadblocks:

// GUI Scripting
Although I've been able to get a script to click the "Export data for..." menu bar item, I haven't found a way to navigate between the different instruments in the document.  I'd like to be able to export the data for all instruments, not just the currently selected one.  For example, if I have a document with a Time Profiler, Allocations, and Leaks instrument set up, I want to export data for all three.

// Instruments Applescript API
I found out Instruments actually has a script dictionary which describes an API for accessing the instruments in a document and their corresponding runs, with a method/verb to export their trace data as csv, plist, or SQL! \o/ ..but.. I can't seem to get any data using the "select rows" method.  I've tried using a bunch of different queries, including the obvious "SELECT *".  Using "SELECT count(*)" returns "1", but that's literally all the data I've been able to get.  Of course, manually clicking "Export trace data for..." creates a proper CSV file with the expected data, which leads me to believe that Instruments isn't supporting these Applescript hooks anymore.

Thanks in advance for any help or ideas!

Brian
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: automatically export trace data from instruments
      • From: Ken Thomases <email@hidden>
  • Prev by Date: provisioning profile is ignored
  • Next by Date: Re: automatically export trace data from instruments
  • Previous by thread: provisioning profile is ignored
  • Next by thread: Re: automatically export trace data from instruments
  • Index(es):
    • Date
    • Thread