Performance issue after update from 5.0 to 5.1

Similar problem, and resolution here. Weird thing is works fine turning hardware tracing back on again.