add feature: Context.getRequiredMemory(). tells how much memory was used.