parameters: (nvprof_exe="nvprof",
                     work_dir=None,
                     output_name=None)
return_statement: return command
docstring: Return the nvprof command and its arguments as a list.
  
      Args:
          nvprof_exe (str, optional): nvprof executable.
          work_dir (str, optional): Working directory.
          output_name (str, optional): File name to output nvprof trace.
docstring_summary: Return the nvprof command and its arguments as a list.
docstring_tokens: Return the nvprof command and its arguments as a list .
function: def nvprof_command(nvprof_exe="nvprof",
                     work_dir=None,
                     output_name=None):
      """Return the nvprof command and its arguments as a list.
  
      Args:
          nvprof_exe (str, optional): nvprof executable.
          work_dir (str, optional): Working directory.
          output_name (str, optional): File name to output nvprof trace.
  
      """
  
      if output_name is None:
          output_name = "prof-%h-%p.nvvp"
  
      command = [nvprof_exe]
      output_path = os.path.join(work_dir, output_name) if work_dir else output_name
      command.extend(["-o", output_path])
      return command
function_tokens: def nvprof_command ( nvprof_exe = "nvprof" , work_dir = None , output_name = None ) : if output_name is None : output_name = "prof-%h-%p.nvvp" command = [ nvprof_exe ] output_path = os . path . join ( work_dir , output_name ) if work_dir else output_name command . extend ( [ "-o" , output_path ] ) return command