Skip to content

Instantly share code, notes, and snippets.

@gmanley
Created September 12, 2012 21:29
Show Gist options
  • Save gmanley/3710063 to your computer and use it in GitHub Desktop.
Save gmanley/3710063 to your computer and use it in GitHub Desktop.
Dtrace msyql
sudo dtrace -qn 'pid$target:mysqld:*mysql_parse*:entry { printf("%Y %s\n", walltimestamp, copyinstr(arg1)) }' -p `pgrep -x mysqld`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment