Asymptotic behavior of global solutions to a class of heat equations with gradient nonlinearity