Custom Instruments: visualizing tree data structure

I was wondering if Instruments provides a way to visualize tree-like data structures (eg: a view hierarchy) when building a custom plugin. The last time I checked none of the built-in detail view types (lists, aggregations, call trees, narrative and Time Slice styles) seemed to be a good fit for this.

Looking at this year's "Visualize and optimize Swift concurrency" session there's a mention to a new set of instruments that use a detail UI ("Task force") close to what would be ideal for my use case, but I'm not sure if this is available to 3rd party developers nor where to find the documentation about it.

Thanks!

Accepted Answer

Hi xavierjurado-fb,

Thanks for watching our session and asking about this detail view. Currently, this detail view is not available for custom instruments to adopt. However, if you would like to use this in your custom instruments please file a feedback using the feedback app or by going to https://feedbackassistant.apple.com/.

Thanks for reaching out!

Hi xavierjurado-fb,

The API for creating your own tree visualizations using Instrument's object graph is available for use by custom instruments in Instruments 14. You can find documentation on how to use the object graph here: https://help.apple.com/instruments/developer/mac/14.0/#/dev274989368.

Please let us know if you have any further questions about the object graph and how to use it!

Custom Instruments: visualizing tree data structure
 
 
Q