documented how memprof works