All of Query Monitor’s data gets stored in the QM_Collector
classes. There’s one for each section (database queries, HTTP requests, conditionals, etc).
There’s then a dispatcher for each method of outputting the data (QM_Dispatcher_Html
and QM_Dispatcher_Headers
) which decides whether or not to output the data (based on permissions) and then a class for actually outputting it (QM_Output_HTML
and QM_Output_Headers
).
If you want to get at Query Monitor’s output you should copy one of the files in the dispatchers
directory and the matching file in the output
directory and go from there.
Hopefully you can figure it out, but bear in mind that this structure is very likely to change in a not too distant version, to make it easier for people to write their own dispatchers and outputters.