Pulsed characteristic-function measurement of a thermalizing harmonic oscillator