/art/ |
D | test.py | 30 parser = argparse.ArgumentParser() variable 31 parser.add_argument('-j', default='', dest='n_threads', help='specify number of concurrent tests') 32 parser.add_argument('--run-test', '-r', action='store_true', dest='run_test', help='execute run tes… 33 parser.add_argument('--gtest', '-g', action='store_true', dest='gtest', help='execute gtest tests') 34 parser.add_argument('--target', action='store_true', dest='target', help='test on target system') 35 parser.add_argument('--host', action='store_true', dest='host', help='test on build host system') 36 parser.add_argument('--help-runner', action='store_true', dest='help_runner', help='show help for o… 37 options, unknown = parser.parse_known_args()
|
/art/tools/checker/ |
D | checker.py | 22 from file_format.c1visualizer.parser import ParseC1visualizerStream 23 from file_format.checker.parser import ParseCheckerStream 27 parser = argparse.ArgumentParser() 28 parser.add_argument("tested_file", 30 parser.add_argument("source_path", nargs="?", 32 parser.add_argument("--check-prefix", dest="check_prefix", default="CHECK", metavar="PREFIX", 34 parser.add_argument("--list-passes", dest="list_passes", action="store_true", 36 parser.add_argument("--dump-pass", dest="dump_pass", metavar="PASS", 38 parser.add_argument("--arch", dest="arch", choices=archs_list, 40 parser.add_argument("--debuggable", action="store_true", [all …]
|
/art/tools/ |
D | wrap-logcat.py | 23 parser = argparse.ArgumentParser( 25 parser.add_argument('--output', '-o', 30 parser.add_argument('--logcat-invoke', 36 parser.add_argument('command', 40 args = parser.parse_args() 43 parser.print_help(file=sys.stderr)
|
D | dt_fds_forward.py | 150 parser = argparse.ArgumentParser(description=""" 156 parser.add_argument("--host", type=str, default="localhost", 158 parser.add_argument("--debug-lib", type=str, default="libjdwp.so", 160 parser.add_argument("--debug-options", type=str, default="server=y,suspend=y,", 163 parser.add_argument("--port", type=int, default=12345, 165 parser.add_argument("--no-run-test", default=False, action="store_true", 168 parser.add_argument("--pre-end", type=int, default=1, 172 parser.print_help() 174 args = parser.parse_args(sys.argv[:end_idx][1:])
|
D | parallel_run.py | 39 parser = argparse.ArgumentParser( 44 parser.add_argument("--jobs", "-j", type=int, help="max number of jobs. default 60", default=60) 45 parser.add_argument("cmd", help="command to run") 46 parser.add_argument("--out", type=str, help="where to put result", default="out_log") 47 args = parser.parse_args()
|
D | generate_cmake_lists.py | 57 parser = argparse.ArgumentParser(description="Generate CMakeLists files for ART") 58 parser.add_argument('--project-name', dest="project_name", required=True, 60 parser.add_argument('--arch', dest="arch", required=True, help='arch') 61 args = parser.parse_args()
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | mkflame.py | 190 parser = argparse.ArgumentParser(description="Convert a trace to a form usable for flame graphs.") 191 parser.add_argument("filename", help="The trace file as input", type=str) 192 parser.add_argument("--use_size", help="Count by allocation size", action="store_true", 194 parser.add_argument("--ignore_type", help="Ignore type of allocation", action="store_true", 196 parser.add_argument("--reverse_stack", help="Reverse root and top of stacks", action="store_true", 198 parser.add_argument("--type_only", help="Only consider allocation type", action="store_true", 200 parser.add_argument("--thread_only", help="Only consider allocation thread", action="store_true", 202 parser.add_argument("--depth_limit", help="Limit the length of a trace", type=int, default=0) 203 args = parser.parse_args()
|
/art/tools/runtime_memusage/ |
D | prune_sanitizer_output.py | 104 parser = argparse.ArgumentParser() 105 parser.add_argument("-d", action="store", 108 parser.add_argument("-e", action="store_true", 112 parser.add_argument("-m", action="store", 115 parser.add_argument("trace_file", action="store", 119 return parser.parse_args()
|
D | symbol_trace_info.py | 140 parser = argparse.ArgumentParser() 141 parser.add_argument("-d", action="store", 144 parser.add_argument("--dex-file", action="store", 148 parser.add_argument("--offsets", action="store", nargs=2, 156 parser.add_argument("--times", action="store", nargs=2, 164 parser.add_argument("sanitizer_trace", action="store", 168 parser.add_argument("symbol_trace", action="store", 172 parser.add_argument("dex_starts", action="store", 175 parser.add_argument("categories", action="store", nargs="*", 179 return parser.parse_args(argv)
|
/art/tools/cpp-define-generator/ |
D | make_header.py | 53 parser = argparse.ArgumentParser() variable 54 parser.add_argument('input', help="Object file as text") 55 args = parser.parse_args()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | check-null-fields.py | 37 parser = argparse.ArgumentParser(description="Get counts of null fields from a device.") 38 parser.add_argument("-S", "--serial", metavar="SERIAL", type=str, 42 parser.add_argument("-p", "--pid", required=False, 55 parser.add_argument('--lib32', type=pushable_lib, 60 parser.add_argument('--lib64', type=pushable_lib, 65 parser.add_argument("fields", nargs="+", 68 out = parser.parse_args()
|
/art/tools/jfuzz/ |
D | run_dex_fuzz_test.py | 174 parser = argparse.ArgumentParser() 175 parser.add_argument('--num_tests', default=1000, type=int, 177 parser.add_argument('--num_inputs', default=10, type=int, 179 parser.add_argument('--device', help='target device serial number') 180 parser.add_argument('--dexer', default='dx', type=str, 182 parser.add_argument('--debug_info', default=False, action='store_true', 184 args = parser.parse_args()
|
D | run_jfuzz_test_nightly.py | 40 parser = argparse.ArgumentParser() 41 parser.add_argument('--num_proc', default=8, 44 (args, unknown_args) = parser.parse_known_args()
|
D | run_jfuzz_test.py | 613 parser = argparse.ArgumentParser() 614 parser.add_argument('--num_tests', default=10000, type=int, 616 parser.add_argument('--device', help='target device serial number') 617 parser.add_argument('--mode1', default='ri', 619 parser.add_argument('--mode2', default='hopt', 621 parser.add_argument('--report_script', 623 parser.add_argument('--jfuzz_arg', default=[], dest='jfuzz_args', 626 parser.add_argument('--true_divergence', default=False, action='store_true', 628 parser.add_argument('--dexer', default='dx', type=str, 630 parser.add_argument('--debug_info', default=False, action='store_true', [all …]
|
/art/tools/jvmti-agents/field-counts/ |
D | count-fields.py | 38 parser = argparse.ArgumentParser(description="Get counts of null fields from a device.") 39 parser.add_argument("-S", "--serial", metavar="SERIAL", type=str, 43 parser.add_argument("-p", "--pid", required=False, 56 parser.add_argument('--lib32', type=pushable_lib, 61 parser.add_argument('--lib64', type=pushable_lib, 66 parser.add_argument("fields", nargs="+", 69 out = parser.parse_args()
|
/art/test/testrunner/ |
D | run_build_test_target.py | 38 parser = argparse.ArgumentParser() variable 39 parser.add_argument('-j', default='1', dest='n_threads') 41 group = parser.add_mutually_exclusive_group(required=True) 44 options = parser.parse_args()
|
/art/tools/bisection_search/ |
D | bisection_search.py | 309 parser = argparse.ArgumentParser( 312 command_opts = parser.add_argument_group('dalvikvm command options') 327 bisection_opts = parser.add_argument_group('bisection options') 350 return parser 375 parser = PrepareParser() 376 args = parser.parse_args() 378 parser.error('Either --raw-cmd or both -cp and --class are required')
|
/art/compiler/driver/ |
D | compiler_options.cc | 136 auto parser = CreateSimpleParser(ignore_unrecognized); in ParseCompilerOptions() local 137 CmdlineResult parse_result = parser.Parse(options); in ParseCompilerOptions() 143 SimpleParseArgumentMap args = parser.ReleaseArgumentsMap(); in ParseCompilerOptions()
|
D | compiler_options_map.def | 38 // TODO: Add type parser. 59 // TODO: Add type parser.
|
/art/test/988-method-trace/ |
D | gen_srcs.py | 282 …parser = argparse.ArgumentParser(description='Generate art/test/988-method-trace/src/art/Test988In… 283 …parser.add_argument('-d', '--debug', action='store_true', dest='debug', help='Print extra debuggin… 284 …parser.add_argument('output_file', nargs='?', metavar='<output-file>', default=sys.stdout, type=ar… 285 args = parser.parse_args()
|
/art/cmdline/ |
D | README.md | 16 generate a type-safe value parser that process a user-provided list of strings (`argv`). Currently, 54 auto parser = MakeParser(); 55 auto result = parser.parse(argv, argc)); 60 auto map = parser.GetArgumentsMap(); 69 In the above code sample, we define a parser which is capable of parsing something like `--help 88 After an argument definition is provided, the parser builder needs to know what type the argument 95 If this call is omitted, the parser generator assumes you are building a `Unit` type (i.e. an 116 This is meant to be another shorthand (like `WithRange`) to avoid writing a custom type parser. In 153 To complete an argument definition, the parser generator also needs to know where to save values. 171 an option to ignore any argument tokens that are not known to the parser. This is done with the [all …]
|
/art/build/apex/ |
D | art_apex_test.py | 1105 parser = argparse.ArgumentParser(description='Check integrity of an ART APEX.') variable 1107 parser.add_argument('apex', help='APEX file input') 1109 parser.add_argument('--host', help='Check as host APEX', action='store_true') 1111 parser.add_argument('--flattened', help='Check as flattened (target) APEX', action='store_true') 1113 parser.add_argument('--flavor', help='Check as FLAVOR APEX', choices=FLAVORS_ALL, 1116 parser.add_argument('--list', help='List all files', action='store_true') 1117 parser.add_argument('--tree', help='Print directory tree', action='store_true') 1118 parser.add_argument('--size', help='Print file sizes', action='store_true') 1120 parser.add_argument('--tmpdir', help='Directory for temp files') 1121 parser.add_argument('--debugfs', help='Path to debugfs') [all …]
|
/art/runtime/ |
D | parsed_options.cc | 57 ParsedOptions parser; in Parse() local 58 return parser.DoParse(options, ignore_unrecognized, runtime_options); in Parse() 571 auto parser = MakeParser(ignore_unrecognized); in DoParse() local 579 CmdlineResult parse_result = parser->Parse(argv_list); in DoParse() 598 RuntimeArgumentMap args = parser->ReleaseArgumentsMap(); in DoParse() 748 auto parser = MakeParser(false); in Usage() local 749 parser->DumpHelp(vios); in Usage()
|
/art/tools/checker/file_format/c1visualizer/ |
D | test.py | 19 from file_format.c1visualizer.parser import ParseC1visualizerStream
|
/art/dex2oat/ |
D | dex2oat_options.cc | 279 Parser parser = CreateArgumentParser(); in Parse() local 280 CmdlineResult parse_result = parser.Parse(argv, argc); in Parse() 286 return std::make_unique<Dex2oatArgumentMap>(parser.ReleaseArgumentsMap()); in Parse()
|