You don't actually need to know the waveform to measure the RMS voltage, current and power. You could sample at 1Hz, for a long period of time and still get an accurate reading, so long as the sample clock isn't in phase with the mains, so it gets samples from the whole waveform, after a long enough period.