@classmethod
def AddArguments(cls, argument_group):
    """Adds command line arguments to an argument group.

    This function takes an argument parser or an argument group object and adds
    to it all the command line arguments this helper supports.

    Args:
      argument_group (argparse._ArgumentGroup|argparse.ArgumentParser):
          argparse group.
    """
    argument_group.add_argument('--profilers', dest='profilers', type=str,
        action='store', default='', metavar='PROFILERS_LIST', help=
        'List of profilers to use by the tool. This is a comma separated list where each entry is the name of a profiler. Use "--profilers list" to list the available profilers.'
        )
    argument_group.add_argument('--profiling_directory',
        '--profiling-directory', dest='profiling_directory', type=str,
        action='store', metavar='DIRECTORY', help=
        'Path to the directory that should be used to store the profiling sample files. By default the sample files are stored in the current working directory.'
        )
    argument_group.add_argument('--profiling_sample_rate',
        '--profiling-sample-rate', dest='profiling_sample_rate', action=
        'store', metavar='SAMPLE_RATE', default=0, help=
        'Profiling sample rate (defaults to a sample every {0:d} files).'.
        format(cls.DEFAULT_PROFILING_SAMPLE_RATE))
