Add more profiling to mhd test program.