[MRG]Fix opt profiler