Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 38) sorted by relevance

12

/art/tools/checker/
Dchecker.py22 from file_format.c1visualizer.parser import parse_c1_visualizer_stream
23 from file_format.checker.parser import parse_checker_stream
28 parser = argparse.ArgumentParser()
29 parser.add_argument("tested_file",
31 parser.add_argument("source_path", nargs="?",
33 parser.add_argument("--check-prefix", dest="check_prefix", default="CHECK", metavar="PREFIX",
35 parser.add_argument("--list-passes", dest="list_passes", action="store_true",
37 parser.add_argument("--dump-pass", dest="dump_pass", metavar="PASS",
39 parser.add_argument("--arch", dest="arch", choices=archs_list,
41 parser.add_argument("--debuggable", action="store_true",
[all …]
/art/
Dtest.py30 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/
Dwrap-logcat.py23 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)
Drun-libcore-tests.py24 parser = argparse.ArgumentParser(description="Run libcore tests using the vogar testing tool.")
25 parser.add_argument('--mode', choices=['device', 'host', 'jvm'], required=True,
27 parser.add_argument('--variant', choices=['X32', 'X64'],
29 parser.add_argument('-j', '--jobs', type=int,
31 parser.add_argument('--timeout', type=int,
33 parser.add_argument('--debug', action='store_true',
35 parser.add_argument('--dry-run', action='store_true',
37 parser.add_argument('--no-getrandom', action='store_false', dest='getrandom',
39 parser.add_argument('--no-jit', action='store_false', dest='jit',
41 parser.add_argument('--gcstress', action='store_true',
[all …]
Dbisect_profile.py36 parser = argparse.ArgumentParser(
45 def __call__(self, parser, namespace, values, option_string=None): argument
55 apks = parser.add_argument_group(title="APK selection")
72 profiles = parser.add_argument_group(
77 parser.add_argument(
79 parser.add_argument("--test-exec", help="file to exec (without arguments) to test a" +
83 parser.add_argument("output_file", help="file we will write the profiles to")
84 return parser
132 parser = get_parser()
133 args = parser.parse_args()
[all …]
Ddt_fds_forward.py153 parser = argparse.ArgumentParser(description="""
159 parser.add_argument("--host", type=str, default="localhost",
161 parser.add_argument("--debug-lib", type=str, default="libjdwp.so",
163 parser.add_argument("--debug-options", type=str, default="server=y,suspend=y,",
166 parser.add_argument("--port", type=int, default=12345,
168 parser.add_argument("--no-run-test", default=False, action="store_true",
171 parser.add_argument("--pre-end", type=int, default=1,
175 parser.print_help()
177 args = parser.parse_args(sys.argv[:end_idx][1:])
Dcompile-jar.py33 parser = argparse.ArgumentParser(
36 parser.add_argument(
41 parser.add_argument(
47 parser.add_argument(
52 parser.add_argument(
58 profs = parser.add_mutually_exclusive_group()
70 parser.add_argument(
78 parser.add_argument(
84 parser.add_argument(
89 parser.add_argument(
[all …]
Dparallel_run.py39 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()
Dgenerate_cmake_lists.py57 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()
Dmethod-to-descriptor.py121 parser = argparse.ArgumentParser(
125 parser.add_argument(
132 parser.add_argument("method", help="what to change", nargs="*")
133 args = parser.parse_args()
/art/tools/jvmti-agents/ti-alloc-sample/
Dmkflame.py190 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/
Dprune_sanitizer_output.py104 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()
Dsymbol_trace_info.py140 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/
Dmake_header.py53 parser = argparse.ArgumentParser() variable
54 parser.add_argument('input', help="Object file as text")
55 args = parser.parse_args()
/art/tools/jfuzz/
Drun_dex_fuzz_test.py174 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()
Drun_jfuzz_test_nightly.py40 parser = argparse.ArgumentParser()
41 parser.add_argument('--num_proc', default=8,
44 (args, unknown_args) = parser.parse_known_args()
Drun_jfuzz_test.py613 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-null-percent/
Dcheck-null-fields.py37 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/jvmti-agents/field-counts/
Dcount-fields.py38 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/
Drun_build_test_target.py38 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/
Dbisection_search.py309 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/
Dcompiler_options.cc136 auto parser = CreateSimpleParser(ignore_unrecognized); in ParseCompilerOptions() local
137 CmdlineResult parse_result = parser.Parse(options); in ParseCompilerOptions()
143 SimpleParseArgumentMap args = parser.ReleaseArgumentsMap(); in ParseCompilerOptions()
/art/test/988-method-trace/
Dgen_srcs.py282parser = argparse.ArgumentParser(description='Generate art/test/988-method-trace/src/art/Test988In…
283parser.add_argument('-d', '--debug', action='store_true', dest='debug', help='Print extra debuggin…
284parser.add_argument('output_file', nargs='?', metavar='<output-file>', default=sys.stdout, type=ar…
285 args = parser.parse_args()
/art/cmdline/
DREADME.md16 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/
Dart_apex_test.py1051 parser = argparse.ArgumentParser(description='Check integrity of an ART APEX.') variable
1053 parser.add_argument('apex', help='APEX file input')
1055 parser.add_argument('--host', help='Check as host APEX', action='store_true')
1057 parser.add_argument('--flattened', help='Check as flattened (target) APEX', action='store_true')
1059 parser.add_argument('--flavor', help='Check as FLAVOR APEX', choices=FLAVORS_ALL,
1062 parser.add_argument('--list', help='List all files', action='store_true')
1063 parser.add_argument('--tree', help='Print directory tree', action='store_true')
1064 parser.add_argument('--size', help='Print file sizes', action='store_true')
1066 parser.add_argument('--tmpdir', help='Directory for temp files')
1067 parser.add_argument('--deapexer', help='Path to deapexer')
[all …]

12