doc on getmemory method.