Export Allocations and other instruments with "xcrun xctrace export --xpath"

Is that possible to export Allocations profile with "xcrun xctrace export --xpath..." command?

Instruments creates schemas/tables for some instrument profiles records.

For example it creates 5 schemas for Activity Monitor, including activity-monitor-process-live, activity-monitor-system, etc.

These schemas are visible in

Instruments menu > Instument > Document Inspector > Stores tab (or Schemas tab to view all available shemas)


Data from these tables could be exported with xpath, which is great.

Unfortunately, I see no table linked to Allocations profile, and upon it's recording no tables created, so data could not be exported with xpath.

Could you please advice how to export data for Allocations in json/xml/any other common format?

If this is not possible for now, I would appreciate adding this feature in the future!
Hi there,

Correct, there's currently no way to export Allocations, Leaks and VM Tracker data.
These recording systems are based on a different technology than our Custom Instruments (https://developer.apple.com/videos/play/wwdc2018/410/).

Thank you for your feedback. We're already tracking work to export data from these Instruments. Once released, you'll see that XPath query will contain appropriate nodes for these.

Kacper

You can export allocations with this kind of command:

xcrun xctrace export --input my-trace.trace --xpath '/trace-toc/run[@number="1"]/tracks/track[@name="Allocations"]/details/detail[@name="Allocations List"]'
xcrun xctrace export --input my-trace.trace --xpath '/trace-toc/run[@number="1"]/tracks/track[@name="Leaks"]/details/detail[@name="Leaks"]'
Export Allocations and other instruments with "xcrun xctrace export --xpath"
 
 
Q