make Profiler constructor be external, to clean up lint warning.