Fixed profiler output for parallel runs

sum and maximum value need to be computed on _every_
process and may then be output only on rank 0.