Post

Replies

Boosts

Views

Activity

Export specific line in Instruments with: xcrun xctrace export --xpath
How can I export specific lines with "xcrun xctrace export --xpath"? For now it's possible to export the whole table with xcrun xctrace export --input my.trace --xpath '/trace-toc/run[@number="1"]/data/table[@schema="activity-monitor-process-live"] Taking into account, that Xpath is used, I would expect possibility to filter rows with some specific attributes, like process ID: .../table[@schema="activity-monitor-process-live"]/row[./process[@ref=123]] If this is impossible now, I will appreciate adding this feature in the future!
4
0
1.4k
Oct ’20
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!
2
0
1.6k
Oct ’20