Second commit of MLPProfilingHelper; first commit of StackDistanceProfilingHelper.