Add profiling code to CalculateMean job