parameters: (self)
return_statement: return p
docstring: Get list of [Pid, Process Name]
docstring_summary: Get list of [Pid, Process Name]
docstring_tokens: Get list of [ Pid Process Name ]
function: def dump_processes(self):
          """Get list of [Pid, Process Name]"""
          ps = self.__find_ps()
  
          sys.stdout.write("INFO: Getting list of processes using %s\n" % ps)
  
          ret = callo([ps, "-axco", "pid,comm"])
  
          b = StringIO.StringIO(ret)
          csvReader = csv.reader(b, delimiter=' ', quoting=csv.QUOTE_NONE, skipinitialspace=True)
  
          p = [[int(row[0]), row[1]] for row in csvReader if row[0] != "PID"]
  
          sys.stdout.write("INFO: Done analyzing process\n")
  
          return p
function_tokens: def dump_processes ( self ) : ps = self . __find_ps ( ) sys . stdout . write ( "INFO: Getting list of processes using %s\n" % ps ) ret = callo ( [ ps , "-axco" , "pid,comm" ] ) b = StringIO . StringIO ( ret ) csvReader = csv . reader ( b , delimiter = ' ' , quoting = csv . QUOTE_NONE , skipinitialspace = True ) p = [ [ int ( row [ 0 ] ) , row [ 1 ] ] for row in csvReader if row [ 0 ] != "PID" ] sys . stdout . write ( "INFO: Done analyzing process\n" ) return p