writing different kinds of dumps (stub/pages, current/history)

Change-Id: Ibdd75afc5133790cef878ffe5a5ea41c83b0da98