moved all profiler init code to Profiler::init()