tools/cygprofile/profile_android_startup.py
def CreateArgumentParser():
  """Creates and return the argument parser."""
  parser = argparse.ArgumentParser()
  parser.add_argument(
      '--adb-path', type=os.path.realpath,
      help='adb binary')
  parser.add_argument(
      '--apk-path', type=os.path.realpath, required=True,
      help='APK to profile')
  parser.add_argument(
      '--output-directory', type=os.path.realpath, required=True,
      help='Chromium output directory (e.g. out/Release)')
  parser.add_argument(
      '--trace-directory', type=os.path.realpath,
      help='Directory in which profile traces will be stored. '
           'Defaults to <output-directory>/profile_data')
  AddProfileCollectionArguments(parser)
  return parser
Creates and return the argument parser.
Creates and return the argument parser.
Creates and return the argument parser .
def CreateArgumentParser():
  parser = argparse.ArgumentParser()
  parser.add_argument(
      '--adb-path', type=os.path.realpath,
      help='adb binary')
  parser.add_argument(
      '--apk-path', type=os.path.realpath, required=True,
      help='APK to profile')
  parser.add_argument(
      '--output-directory', type=os.path.realpath, required=True,
      help='Chromium output directory (e.g. out/Release)')
  parser.add_argument(
      '--trace-directory', type=os.path.realpath,
      help='Directory in which profile traces will be stored. '
           'Defaults to <output-directory>/profile_data')
  AddProfileCollectionArguments(parser)
  return parser
def CreateArgumentParser ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( '--adb-path' , type = os . path . realpath , help = 'adb binary' ) parser . add_argument ( '--apk-path' , type = os . path . realpath , required = True , help = 'APK to profile' ) parser . add_argument ( '--output-directory' , type = os . path . realpath , required = True , help = 'Chromium output directory (e.g. out/Release)' ) parser . add_argument ( '--trace-directory' , type = os . path . realpath , help = 'Directory in which profile traces will be stored. ' 'Defaults to <output-directory>/profile_data' ) AddProfileCollectionArguments ( parser ) return parser
Creates and return the argument parser.
Creates and return the argument parser .
"""Creates and return the argument parser."""