def register_memory():
<EOL>def get_mem(proc):<EOL><INDENT>if os.name == '<STR_LIT>':<EOL><INDENT>mem = proc.memory_info_ex()<EOL>counter = mem.rss<EOL>if '<STR_LIT>' in mem._fields:<EOL><INDENT>counter -= mem.shared<EOL><DEDENT>return counter<EOL><DEDENT>else:<EOL><INDENT>return proc.get_memory_info().rss<EOL><DEDENT><DEDENT>if SERVER_PROC is not None:<EOL><INDENT>mem = get_mem(SERVER_PROC)<EOL>for child in SERVER_PROC.children():<EOL><INDENT>mem += get_mem(child)<EOL><DEDENT>server_memory.append(bytes2human(mem))<EOL><DEDENT>
Register an approximation of memory used by FTP server process
    and all of its children.