Refactor profiler start stop analyze interaction