[profiler] Compute max of timings instead of sum