"release_channel",choices=['nightly','beta','release','debug'],help="the release channel to measure"
"release_channel",choices=CHANNEL_TO_PKG.keys(),help="the release channel to measure"
)
parser.add_argument(
"test_name",choices=TESTS,help="the start up test to run; see https://wiki.mozilla.org/Performance/Fenix#Terminology for descriptions of cold/warm/hot and main/view"
@ -61,13 +61,6 @@ def validate_args(args):
raiseException("Given `path` unexpectedly exists: pick a new path or use --force to overwrite.")
defget_package_id(release_channel):
package_id=CHANNEL_TO_PKG.get(release_channel)
ifnotpackage_id:
raiseException('this should never happen: this should be validated by argparse')
returnpackage_id
defget_activity_manager_args():
return['adb','shell','am']
@ -209,7 +202,7 @@ def main():
print("Clear the onboarding experience manually, if it's desired and you haven't already done so.")
print("\nYou can use this script to find the average from the results file: https://github.com/mozilla-mobile/perf-tools/blob/master/analyze_durations.py")