Static probes are being gradually integrated into MySQL. As of
MySQL 6.0.9, there are around 55 static probes. To use the static
probes, you will have to supply an extra option to the configure
script, --enable-dtrace
. After the build is over,
start mysqld
. Now open a terminal, and type
$pfexec dtrace -l | grep mysql
. You should see
something like this:
135 mysql23509 mysqld __1cQdispatch_command6FnTenum_server_command_pnDTHD_pcI_b_ command-done 136 mysql23509 mysqld __1cQdispatch_command6FnTenum_server_command_pnDTHD_pcI_b_ command-start 137 mysql23509 mysqld __1cQclose_connection6FpnDTHD_Ib_v_ connection-done 138 mysql23509 mysqld handle_one_connection connection-start 139 mysql23509 mysqld __1cMmysql_delete6FpnDTHD_pnKTABLE_LIST_pnEItem_pnLst_sql_list_LXb_b_ delete-done 140 mysql23509 mysqld __1cHhandlerNha_delete_row6MpkC_i_ …[Read more]