parameters: (self)
docstring: Collects minidumps on the Impala process based on argument --minidumps. The
      minidumps are collected by sending a SIGUSR1 signal to the Impala process and then
      the resulting minidumps are copied to the target directory.
docstring_summary: Collects minidumps on the Impala process based on argument --minidumps. The
      minidumps are collected by sending a SIGUSR1 signal to the Impala process and then
      the resulting minidumps are copied to the target directory.
docstring_tokens: Collects minidumps on the Impala process based on argument -- minidumps . The minidumps are collected by sending a SIGUSR1 signal to the Impala process and then the resulting minidumps are copied to the target directory .
function: def collect_minidumps(self):
      """Collects minidumps on the Impala process based on argument --minidumps. The
      minidumps are collected by sending a SIGUSR1 signal to the Impala process and then
      the resulting minidumps are copied to the target directory."""
      minidump_count, minidump_interval_secs = self.args.minidumps
      if minidump_count <= 0 or minidump_interval_secs < 0:
        return
      # Impala process writes a minidump when it encounters a SIGUSR1.
      cmd_args = ["kill", "-SIGUSR1", str(self.args.pid)]
      cmd = Command(cmd_args, self.args.timeout)
      collection_start_ts = time.time()
      for i in xrange(minidump_count):
        cmd.run()
        self.wait_for_minidump()
        time.sleep(minidump_interval_secs)
      out_dir = os.path.join(self.collection_root_dir, "minidumps")
      self.copy_minidumps(out_dir, collection_start_ts);
function_tokens: def collect_minidumps ( self ) : minidump_count , minidump_interval_secs = self . args . minidumps if minidump_count <= 0 or minidump_interval_secs < 0 : return # Impala process writes a minidump when it encounters a SIGUSR1. cmd_args = [ "kill" , "-SIGUSR1" , str ( self . args . pid ) ] cmd = Command ( cmd_args , self . args . timeout ) collection_start_ts = time . time ( ) for i in xrange ( minidump_count ) : cmd . run ( ) self . wait_for_minidump ( ) time . sleep ( minidump_interval_secs ) out_dir = os . path . join ( self . collection_root_dir , "minidumps" ) self . copy_minidumps ( out_dir , collection_start_ts )