I don't know about IMAP, but e.g. for mysql, I like: http://pecl.php.net/package/mysqlnd_uh
(make sure you build from trunk — as it contains bug fixes)
So what this does is, it allows you to configure a proxy to log all statements etc.. We use something like that to analyze queries run in production. So I log queries and fire EXPLAIN either on all or only on queries based on a threshold. (e.g. slower than 10ms). The code to get that is trivial.
Just register the proxy class (e.g. in index.php) and off you go. Much better than e.g. building custom code for it into RoundCube.
This is also a little more efficient than the slow query log which can be a huge PITA in a high traffic environment. ;-) Especially because the hook from PHP allows me to register the proxy only for certain accounts (or roles).
For IMAP — good question. Not sure if there is a way to intercept all socket calls. Maybe use your server's firewall to do a little inspection on calls etc..? I imagine nothing is free though.
Till
On Wednesday, November 21, 2012 at 12:04 PM, Cor Bosman wrote:
Hey all, would it theoretically be possible to log timing info in debug output? For instance SQL and IMAP debugging? It would be invaluable to find performance problems I would think.
Regards,
Cor
Roundcube Development discussion mailing list dev@lists.roundcube.net (mailto:dev@lists.roundcube.net) http://lists.roundcube.net/mailman/listinfo/dev