Interpreting memprof output

I’m wondering how to interpret memprof output. The code in the Emacs plugin for memprof has a formula to convert number-of-samples to Mb. I try that with the total number of samples, and it’s less than one Gb allocated for my code. Yet, “top” reports my process is using over 5 Gb.

Why the large disparity?