Is this feature or something similar already in MariaDB 10?  If not, is it on the roadmap?

http://dev.mysql.com/doc/internals/en/optimizer-tracing.html

-Tim Callaghan