Retrieving statistics

Client statistics can be retrieved by calling the mysqli_get_client_stats function.

Connection statistics can be retrieved by calling the mysqli_get_connection_stats function.

Both functions return an associative array, where the name of a statistic is the key for the corresponding statistical data.