Add customizable sort output

Sort by: count (default), average query time, max query time

This also increases the time buckets so we profile 10,000 queries
instead of just 100. This gives more stable numbers.