PHP script to analyse CoreData debug log, aggregate similar queries, produce statistics and format messed-up queries into readable ones.