frame is optional on dump_memory