johnbillion / query-monitor

The developer tools panel for WordPress
https://querymonitor.com
GNU General Public License v2.0
1.59k stars 208 forks source link

Show Xdebug compression details #611

Open ssnepenthe opened 2 years ago

ssnepenthe commented 2 years ago

Along the lines of #576...

It looks like Xdebug 3.1 will try to compress trace and profile files by default, depending on availability of zlib.

It would be great if query monitor displayed the current compression settings since not all tools will be able to read these compressed files. For example:

You should be able to determine whether xdebug was compiled with compression support with something like: in_array( 'compression', xdebug_info( 'extension-flags' ), true ).

The xdebug.use_compression setting can then be checked to determine if compression is currently enabled.

These details could probably even be hidden by default and only shown if the current mode includes 'trace' or 'profile'.

More info:

johnbillion commented 2 years ago

Thanks for all the info, I'll give it a look once 3.1 is released!