Merge "Profiler: remove unnecessary checks Should slightly reduce overhead."