Move profile In/OUT call out of MWPHPUnitCommand

Change-Id: I710fddc20e88745c9091432dff87b5e361c1f71a
Merge "Move profile In/OUT call out of MWPHPUnitCommand"