parameters: (self, name)
return_statement: return len(cmd.stdout.split("\n")) - 1
docstring: Returns number of processes with the given name and target Impala pid
      as parent.
docstring_summary: Returns number of processes with the given name and target Impala pid
      as parent.
docstring_tokens: Returns number of processes with the given name and target Impala pid as parent .
function: def get_num_child_proc(self, name):
      """Returns number of processes with the given name and target Impala pid
      as parent."""
      # Not all pgrep versions support -c parameter. So fetch the stdout and
      # count the number of items in the list.
      cmd = Command(["pgrep", "-P", str(self.args.pid), name])
      cmd.run()
      return len(cmd.stdout.split("\n")) - 1
function_tokens: def get_num_child_proc ( self , name ) : # Not all pgrep versions support -c parameter. So fetch the stdout and # count the number of items in the list. cmd = Command ( [ "pgrep" , "-P" , str ( self . args . pid ) , name ] ) cmd . run ( ) return len ( cmd . stdout . split ( "\n" ) ) - 1