How to debug introspections?

Hi,

In Memory consumption and compile time - Regression from 0.14.2 to 0.15.0 · Issue #8611 · typst/typst · GitHub is mentioned the precise number of introspections in a heavy document.

I also have introspection-heavy use cases (e.g. a densely linked bundle with backlinks and metadata) and I would like to know how to inspect, for example:

  1. the number of introspections
  2. (the location of) queries
  3. (the location of) queried content

Would someone have any pointers or know-how to inspect heavy introspection that I don’t know of?