http://developer.cybozu.co.jp/archives/kazuho/2009/07/mysql-539d.html SHOW FULL PROCESSLIST を 0.1 秒ごとに1000回取得し、その結果を眺めるという kazuho さんが書いた mprofile という便利スクリプトがあります。 これは Perl で書かれていて、それはそれでいいんですが Python で書きたいというアレがあったので Python で書きなおした。 (お察しください) https://github.com/tokuhirom/mprofile-python # Python port of mprofile(MySQL profiler) This is a port of mprofile(written in perl). Original repo is here: ht