Skip to main content

AsyncMysqlClientStats

Note

This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.

Provides timing statistics about the MySQL client

This class provides round-trip and callback timing information for various operations on the MySQL client.

This information can be used to know how the performance of the MySQL client may have affected a given result.

For example, if you have a AsyncMysqlConnection, you can call:

$conn->connectResult()->clientStats()->ioEventLoopMicrosAvg()

to get round-trip timing information on the connection event itself.

Basically any concrete implementation of AsyncMysqlResult can provide these type of statistics by calling its clientStats() method and a method on this class.

Guides

Interface Synopsis

class AsyncMysqlClientStats {...}

Public Methods