Profiling of _detrend and _mean_of_squares