Add memory profile dumper