AsyncMysqlClientStats
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
->callbackDelayMicrosAvg(): float
Average delay between when a callback is scheduled in the MySQL client and when it's actually ran, in microseconds->ioEventLoopMicrosAvg(): float
Average loop time of the MySQL client event, in microseconds->ioThreadBusyMicrosAvg(): float
Average of reported busy time in the client's IO thread->ioThreadIdleMicrosAvg(): float
Average of reported idle time in the client's IO thread->notificationQueueSize(): int
Size of this client's event base notification queue