I have seen that I can export table data from traces containing Allocations, Leaks, and VM Tracker instruments using xctrace export on the command line in XCode 13 release notes. But I still cannot see the table data when I use xctrace export --input xxx.trace --toc
. How can I export given .trace using supplied query to the XML file format that can be later read and post-processed
How can I export table data from traces containing Allocations, Leaks, and VM Tracker instruments using Xcode 13?
Hi there,
Data from traces containing Allocations, Leaks, and VM Tracker instruments could be exported with following command:
xctrace export --input input.trace --xpath '/trace-toc/run[@number="1"]/tracks/track[@name="Allocations"]/details/detail[@name="Statistics"]'
It uses run->tracks->track->details->detail
nodes instead of run->data->table
for other instruments.
Hope that helps!
Anton