Clone of Google's memory measurer, with slight additions.