WL#5384: PERFORMANCE_SCHEMA Histograms

Affects: Server-8.0   —   Status: Complete

Currently, the statement instrumentation provide the following statistics
per statements digests, or globally:
- minimum latency
- average latency
- maximum latency

This is not enough for a DBA to assess overall the system performance,
assess if the server is operating efficiently, and assess if the server
performance is stable (narrow distribution of query latencies).

This feature provides histograms of statements latency,
to have a better visibility of the distribution of data.

Also, measurements of quantiles ("P95", "P99" and "P999" percentiles)
are computed from the histogram collected.
These percentiles are often used as indicators of quality of service.

Histograms are provided only for statements,
not for lower level instruments like stages or waits.

Histograms are aggregated per statement digest, and globally.

User Documentation
==================

* https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html
* https://dev.mysql.com/doc/refman/8.0/en/statement-histogram-summary-tables.html