Statistics
Table of Contents
MySQL Native Driver contains support for gathering statistics on the
communication between the client and the server. The statistics
gathered are of two main types:
-
Client statistics
-
Connection statistics
When using the mysqli extension,
these statistics can be obtained through two API calls:
-
mysqli_get_client_stats
-
mysqli_get_connection_stats
Note:
Statistics are aggregated among all extensions that use the MySQL Native
Driver.
For example, if the mysqli
extension and the PDO MySQL driver are both set-up to use MySQLnd,
then function calls from mysqli
and method calls from PDO will affect the statistics.
There is no way to find out how much a certain API call of any extension
that has been compiled against MySQL Native Driver has impacted a certain
statistic.