Microslow patch has been there for some time, but only for earlier MySQL editions such as 4.1 and 5.0. Now it's also available for the latest 5.1.
Because MySQL went through a lot of internal changes, the patch had to be written from scratch. It introduces some minor change in existing functionality and also adds new.
For the patch to work you must of course enable slow logging with
--slow-query-log parameter. MySQL 5.1 has this nice
feature which allows you to redirect query log (it's actually
called general log now) and slow log to CSV tables
mysql.general_log and mysql.slow_log respectively. …