Save memory trace instead of printing history

Since printing history does not work on my processors but errors.