Add debugging output to totalAnalogSamples.