diff --git a/reference/mysqli/mysqlnd.xml b/reference/mysqli/mysqlnd.xml index 16edef7cc1..17edcea70d 100644 --- a/reference/mysqli/mysqlnd.xml +++ b/reference/mysqli/mysqlnd.xml @@ -1,5 +1,5 @@ - + The MySQL Native Driver @@ -253,8 +253,8 @@ $conn = new mysqli($host, $user, $password, $dbname, $port, $socket) - If you are using the mysqli extension, - these statistics can be obtained through three API calls: + If you are using the mysqli extension, these + statistics can be obtained through three API calls: @@ -299,8 +299,6 @@ $conn = new mysqli($host, $user, $password, $dbname, $port, $socket) phpinfo function. - - Accessing Connection Statistics @@ -316,8 +314,6 @@ $conn = new mysqli($host, $user, $password, $dbname, $port, $socket) the statistic as the key and the statistical data as the value. - - Accessing Zval Cache Statistics @@ -325,7 +321,7 @@ $conn = new mysqli($host, $user, $password, $dbname, $port, $socket) The MySQL Native Driver also collects statistics from its internal Zval cache. These statistics can be accessed by calling - mysqli_get_cache_stat. + mysqli_get_cache_stats. @@ -334,6 +330,386 @@ $conn = new mysqli($host, $user, $password, $dbname, $port, $socket) resulting in better performance. + + Statistics returned by MySQL Native + Driver + + + + The following table shows a list of statistics returned by the + mysqli_get_client_stats, + mysqli_get_connections_stats and + mysqli_get_cache_stats functions. + + + + + + + + Statistic + + + bytes_sent + + + bytes_received + + + packets_sent + + + packets_received + + + protocol_overhead_in + + + protocol_overhead_out + + + bytes_received_ok_packet + + + bytes_received_eof_packet + + + bytes_received_rset_header_packet + + + bytes_received_rset_field_meta_packet + + + bytes_received_rset_row_packet + + + bytes_received_prepare_response_packet + + + bytes_received_change_user_packet + + + packets_sent_command + + + packets_received_ok + + + packets_received_eof + + + packets_received_rset_header + + + packets_received_rset_field_meta + + + packets_received_rset_row + + + packets_received_prepare_response + + + packets_received_change_user + + + result_set_queries + + + non_result_set_queries + + + no_index_used + + + bad_index_used + + + slow_queries + + + buffered_sets + + + unbuffered_sets + + + ps_buffered_sets + + + ps_unbuffered_sets + + + flushed_normal_sets + + + flushed_ps_sets + + + ps_prepared_never_executed + + + ps_prepared_once_executed + + + rows_fetched_from_server_normal + + + rows_fetched_from_server_ps + + + rows_buffered_from_client_normal + + + rows_buffered_from_client_ps + + + rows_fetched_from_client_normal_buffered + + + rows_fetched_from_client_normal_unbuffered + + + rows_fetched_from_client_ps_buffered + + + rows_fetched_from_client_ps_unbuffered + + + rows_fetched_from_client_ps_cursor + + + rows_skipped_normal + + + rows_skipped_ps + + + copy_on_write_saved + + + copy_on_write_performed + + + command_buffer_too_small + + + connect_success + + + connect_failure + + + connection_reused + + + reconnect + + + pconnect_success + + + active_connections + + + active_persistent_connections + + + explicit_close + + + implicit_close + + + disconnect_close + + + in_middle_of_command_close + + + explicit_free_result + + + implicit_free_result + + + explicit_stmt_close + + + implicit_stmt_close + + + mem_emalloc_count + + + mem_emalloc_ammount + + + mem_ecalloc_count + + + mem_ecalloc_ammount + + + mem_erealloc_count + + + mem_erealloc_ammount + + + mem_efree_count + + + mem_malloc_count + + + mem_malloc_ammount + + + mem_calloc_count + + + mem_calloc_ammount + + + mem_realloc_count + + + mem_realloc_ammount + + + mem_free_count + + + proto_text_fetched_null + + + proto_text_fetched_bit + + + proto_text_fetched_tinyint + + + proto_text_fetched_short + + + proto_text_fetched_int24 + + + proto_text_fetched_int + + + proto_text_fetched_bigint + + + proto_text_fetched_decimal + + + proto_text_fetched_float + + + proto_text_fetched_double + + + proto_text_fetched_date + + + proto_text_fetched_year + + + proto_text_fetched_time + + + proto_text_fetched_datetime + + + proto_text_fetched_timestamp + + + proto_text_fetched_string + + + proto_text_fetched_blob + + + proto_text_fetched_enum + + + proto_text_fetched_set + + + proto_text_fetched_geometry + + + proto_text_fetched_other + + + proto_binary_fetched_null + + + proto_binary_fetched_bit + + + proto_binary_fetched_tinyint + + + proto_binary_fetched_short + + + proto_binary_fetched_int24 + + + proto_binary_fetched_int + + + proto_binary_fetched_bigint + + + proto_binary_fetched_decimal + + + proto_binary_fetched_float + + + proto_binary_fetched_double + + + proto_binary_fetched_date + + + proto_binary_fetched_year + + + proto_binary_fetched_time + + + proto_binary_fetched_datetime + + + proto_binary_fetched_timestamp + + + proto_binary_fetched_string + + + proto_binary_fetched_blob + + + proto_binary_fetched_enum + + + proto_binary_fetched_set + + + proto_binary_fetched_geometry + + + proto_binary_fetched_other + + + + +