def getmemorystat(self, process_name):
<EOL>_stat_inst = ProcessStats(process_name)<EOL>_stat_list = []<EOL>for p in _stat_inst.get_cpu_memory_stat():<EOL><INDENT>try:<EOL><INDENT>_stat_list.append(round(p.get_memory_percent(), <NUM_LIT:2>))<EOL><DEDENT>except psutil.AccessDenied:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return _stat_list<EOL>
get memory stat

@param process_name: Process name, ex: firefox-bin.
@type process_name: string

@return: memory stat list on success, else empty list
        If same process name, running multiple instance,
        get the stat of all the process memory usage
@rtype: list