Andrey has implemented a little mysqlnd only addition to mysqli_debug(): ‘m’ - dump memory information. It works like the other options described in PHP: Debugging ext/mysqli and mysqlnd with the only difference that it is only available with mysqlnd.
Without option ‘m’
This is a short example of mysqlnd freeing the meta data of a result set.
[...] | | | >mysqlnd_res_meta::free | | | | info : persistent=0 | | | | info : Freeing fields metadata | | | | info : Freeing zend_hash_keys | | | | info : Freeing metadata structure | | | >mysqlnd_res_meta::free [...]
Additional mysqlnd memory allocation debug information with option ‘m’
Same trace excerpt but with memory debugging turned on. The control string used for this trace was ‘t:O,/tmp/mysqlnd.trace:m’.
[...] | | | >mysqlnd_res_meta::free | | | | info : …[Read more]