in pageload-summary/summarize_testing2.py [0:0]
def summary_parser():
parser = argparse.ArgumentParser(
"This tool can be used to generate a summary of the pageload numbers for a single "
"given subtest, i.e. ContenfulSpeedIndex. We provide the summary through a geomean "
"and you can also perform a comparison with competing browsers using "
"`--compare-browsers`. You must provide data in the CSV format that is returned from "
"this query: https://sql.telemetry.mozilla.org/queries/79289"
)
parser.add_argument(
"data", metavar="CSV_DATA", type=str, help="The data to summarize."
)
parser.add_argument(
"--compare-browsers",
action="store_true",
default=False,
help="Provide a comparison between the browsers found.",
)
parser.add_argument(
"--timespan",
type=int,
default=24,
help="Minimum time between each data point in hours.",
)
parser.add_argument(
"--platforms",
nargs="*",
default=[
# "linux64-shippable-qr",
# "windows10-64-shippable-qr",
# "macosx1015-64-shippable-qr"
],
help="Platforms to summarize.",
)
parser.add_argument(
"--output",
type=str,
default=os.getcwd(),
help="This is where the data will be saved in JSON format. If the "
"path has a `.json` suffix then we'll use the part immediately "
"before it as the file name.",
)
return parser