Refactor profiler startup / logging