use TreeMap instead of HashMap for profiler buckets