Add two more reports about locks: Most frequent waiting queries (N), Queries that waited the most. Add two other reports about temporary files: Queries generating the most temporary files (N) and Queries generating the largest temporary files. Thanks to Thomas Reiss for the patch.
Add samples queries to Most frequent waiting queries report.
Add text output for the four new report.
Fix text reports about temporary files.
Fix wrong queries storage with lock and temporary file reports. Thanks to Thomas Reiss for the report.