Query stats for compression based on TRIM size

Description

Need support for query stats to provide statistics on the various TRIM operations performed for the page-compression/NVM Compression workload.

For the 2K format block-size it shows none
=======
Innodb_page_compression_saved 364564353024
Innodb_page_compression_trim_sect512 0
Innodb_page_compression_trim_sect4096 0
========

For the 512B and 4K format block-size it shows the following
=======
Innodb_page_compression_saved 284889649152
Innodb_page_compression_trim_sect512 0
Innodb_page_compression_trim_sect4096 13063475
=======

It should support block-size 512B, 1K, 2K, 4K at this time.

Environment

None

Status

Assignee

Jan Lindström

Reporter

Dhananjoy

Fix versions

Affects versions

Priority

Minor
Configure