Profiler history

you should make sure max is not 0