* Enable profiler for static training. * Polish the initialize of ProfilerOptions. * Enable profiler for dynamic mode.