#!/usr/sbin/dtrace -Zs
pid$target:libmysqlclient:mysql_real_query:entry
{
printf("Query: %s\n", copyinstr(arg1));
}pgrep httpddtrace -p 714 -s ./mysql.d
If it isn't hard, it's not fun
If it doesn't deliver, it's not cool
#!/usr/sbin/dtrace -Zs
pid$target:libmysqlclient:mysql_real_query:entry
{
printf("Query: %s\n", copyinstr(arg1));
}pgrep httpddtrace -p 714 -s ./mysql.d
Copyright © 2009 The little island of excitement!
Design by Design Disease for Smashing Magazine | Blogger Templates by Blog and Web
0 comments:
Post a Comment