def getcpustat(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(p.get_cpu_percent())<EOL><DEDENT>except psutil.AccessDenied:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return _stat_list<EOL>
get CPU stat for the give process name

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

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