pt-query-digestã ã£ãã調æ»ã®ããã«ãNç§éã ãmysqlã®å ¨ã¯ã¨ãªã®ãã°ãåå¾ãããã¨ãããã¨ã¯ããããã¾ããã ãããªæã¯ãããªã³ãã³ãã使ãã¨ç°¡åã«æå®ã®ç§æ°slowlogãåãæ¿ãã¦ä¿åãåå¾å¾ã«å ã«æ»ãã¦ããã¾ãã $ slowlog.pl --duration 10 -- --default-extra-file=/hoge/my.cnf -uuser -- ã®ãã¨ã¯mysqlã³ãã³ãã«æ¸¡ããªãã·ã§ã³ ã½ã¼ã¹ #!/usr/bin/perl use strict; use warnings; use IO::Handle; use Getopt::Long; use File::Spec; sub find_path { my $pg = shift; my $path; for ( split /:/, $ENV{PATH} ) { if ( -x "$_/$p
{{#tags}}- {{label}}
{{/tags}}