var result = M.info.memory();

alert(JSON.stringify(result));
M.tool.log(result);