Is it possible in Windows using standard performance counters to determine the query execution time in the MySql database, i.e. waiting time between calling IDbCommand.ExecuteReader and getting data?
1 answer
The standard connector supports only two counters - HardProcedureQueries
and HardProcedureQueries
, in the category .NET Data Provider for MySQL
.
The counters are enabled with the option Use Performance Monitor=true
in the connection string (or its attributes - UsePerformanceMonitor
, userperfmon
, perfmon
).
But both standard counters are of the NumberOfItems
type, so the execution time based on them cannot be obtained. Maximum - the number of requests per second for a certain period of time.
|
mysql
? Otherwise, you risk testing the speed of your internet - BOPOH