tools/android/native_lib_memory/extract_symbols.py
def CreateArgumentParser():
  """Creates and returns the argument parser."""
  parser = argparse.ArgumentParser(description='Map code pages to paths')
  parser.add_argument('--native-library', type=str, default='libchrome.so',
                      help=('Native Library, e.g. libchrome.so or '
                            'libmonochrome.so'))
  parser.add_argument('--reached-symbols-file', type=str,
                      help='Path to the list of reached symbols, as generated '
                      'by tools/cygprofile/process_profiles.py',
                      required=False)
  parser.add_argument('--residency', type=str,
                      help='Path to JSON file with residency pages, as written'
                      ' by extract_resident_pages.py', required=False)
  parser.add_argument('--build-directory', type=str, help='Build directory',
                      required=True)
  parser.add_argument('--output-directory', type=str, help='Output directory',
                      required=True)
  parser.add_argument('--arch', help='Unused')
  parser.add_argument('--start-server', action='store_true', default=False,
                      help='Run an HTTP server in the output directory')
  parser.add_argument('--port', type=int, default=8000,
                      help='Port to use for the HTTP server.')
  return parser
Creates and returns the argument parser.
Creates and returns the argument parser.
Creates and returns the argument parser .
def CreateArgumentParser():
  parser = argparse.ArgumentParser(description='Map code pages to paths')
  parser.add_argument('--native-library', type=str, default='libchrome.so',
                      help=('Native Library, e.g. libchrome.so or '
                            'libmonochrome.so'))
  parser.add_argument('--reached-symbols-file', type=str,
                      help='Path to the list of reached symbols, as generated '
                      'by tools/cygprofile/process_profiles.py',
                      required=False)
  parser.add_argument('--residency', type=str,
                      help='Path to JSON file with residency pages, as written'
                      ' by extract_resident_pages.py', required=False)
  parser.add_argument('--build-directory', type=str, help='Build directory',
                      required=True)
  parser.add_argument('--output-directory', type=str, help='Output directory',
                      required=True)
  parser.add_argument('--arch', help='Unused')
  parser.add_argument('--start-server', action='store_true', default=False,
                      help='Run an HTTP server in the output directory')
  parser.add_argument('--port', type=int, default=8000,
                      help='Port to use for the HTTP server.')
  return parser
def CreateArgumentParser ( ) : parser = argparse . ArgumentParser ( description = 'Map code pages to paths' ) parser . add_argument ( '--native-library' , type = str , default = 'libchrome.so' , help = ( 'Native Library, e.g. libchrome.so or ' 'libmonochrome.so' ) ) parser . add_argument ( '--reached-symbols-file' , type = str , help = 'Path to the list of reached symbols, as generated ' 'by tools/cygprofile/process_profiles.py' , required = False ) parser . add_argument ( '--residency' , type = str , help = 'Path to JSON file with residency pages, as written' ' by extract_resident_pages.py' , required = False ) parser . add_argument ( '--build-directory' , type = str , help = 'Build directory' , required = True ) parser . add_argument ( '--output-directory' , type = str , help = 'Output directory' , required = True ) parser . add_argument ( '--arch' , help = 'Unused' ) parser . add_argument ( '--start-server' , action = 'store_true' , default = False , help = 'Run an HTTP server in the output directory' ) parser . add_argument ( '--port' , type = int , default = 8000 , help = 'Port to use for the HTTP server.' ) return parser
Creates and returns the argument parser.
Creates and returns the argument parser .
"""Creates and returns the argument parser."""