Asymptotic distribution of sum and maximum for Gaussian processes