@@ -20,9 +20,6 @@ Where COMMAND is one of:"
2020
2121 noop - Just print description.
2222 clean - Remove out/ directory.
23- linux-ia32-build - Build linux-ia32 for benchmarking.
24- linux-ia32-archive - Archive linux-ia32.
25- linux-ia32-benchmark - Try linux-ia32 benchmarking.
2623 linux-x64-build - Build linux-x64 for benchmarking.
2724 linux-x64-archive - Archive linux-x64.
2825 linux-x64-benchmark - Try linux-x64 benchmarking.
@@ -69,115 +66,8 @@ for command; do
6966 elif [ " $command " = clean ]; then
7067 rm -rf out
7168 rm -rf tmp
72- rm -f linux-ia32.tar.gz
73- rm -f linux-ia32_profile.tar.gz
7469 rm -f linux-x64.tar.gz
7570 rm -f linux-x64_profile.tar.gz
76- elif [ " $command " = linux-ia32-build ]; then
77- # NOTE: These are duplicated in tools/bots/test_matrix.json, keep in sync.
78- ./tools/build.py --mode=release --arch=ia32 create_sdk runtime dart2js_platform.dill kernel-service.dart.snapshot
79- elif [ " $command " = linux-ia32-archive ]; then
80- export GZIP=-1
81- strip -w \
82- -K ' kDartVmSnapshotData' \
83- -K ' kDartVmSnapshotInstructions' \
84- -K ' kDartCoreIsolateSnapshotData' \
85- -K ' kDartCoreIsolateSnapshotInstructions' \
86- -K ' _ZN4dart3bin26observatory_assets_archiveE' \
87- -K ' _ZN4dart3bin30observatory_assets_archive_lenE' \
88- -K ' _ZN4dart3bin7Builtin22_builtin_source_paths_E' \
89- -K ' _ZN4dart3bin7Builtin*_paths_E' \
90- -K ' _ZN4dart3binL17vm_snapshot_data_E' \
91- -K ' _ZN4dart3binL24isolate_snapshot_buffer_E' \
92- -K ' _ZN4dart3binL27core_isolate_snapshot_data_E' \
93- -K ' _ZN4dart3binL27observatory_assets_archive_E' \
94- -K ' _ZN4dart3binL27vm_isolate_snapshot_buffer_E' \
95- -K ' _ZN4dart3binL29core_isolate_snapshot_buffer_E' \
96- -K ' _ZN4dart7Version14snapshot_hash_E' \
97- -K ' _ZN4dart7Version4str_E' \
98- -K ' _ZN4dart7Version7commit_E' \
99- -K ' _ZN4dart9Bootstrap*_paths_E' out/ReleaseIA32/dart
100- strip -w \
101- -K ' kDartVmSnapshotData' \
102- -K ' kDartVmSnapshotInstructions' \
103- -K ' kDartCoreIsolateSnapshotData' \
104- -K ' kDartCoreIsolateSnapshotInstructions' \
105- -K ' _ZN4dart3bin26observatory_assets_archiveE' \
106- -K ' _ZN4dart3bin30observatory_assets_archive_lenE' \
107- -K ' _ZN4dart3bin7Builtin22_builtin_source_paths_E' \
108- -K ' _ZN4dart3bin7Builtin*_paths_E' \
109- -K ' _ZN4dart3binL17vm_snapshot_data_E' \
110- -K ' _ZN4dart3binL24isolate_snapshot_buffer_E' \
111- -K ' _ZN4dart3binL27core_isolate_snapshot_data_E' \
112- -K ' _ZN4dart3binL27observatory_assets_archive_E' \
113- -K ' _ZN4dart3binL27vm_isolate_snapshot_buffer_E' \
114- -K ' _ZN4dart3binL29core_isolate_snapshot_buffer_E' \
115- -K ' _ZN4dart7Version14snapshot_hash_E' \
116- -K ' _ZN4dart7Version4str_E' \
117- -K ' _ZN4dart7Version7commit_E' \
118- -K ' _ZN4dart9Bootstrap*_paths_E' out/ReleaseIA32/gen_snapshot
119- strip -w \
120- -K ' kDartVmSnapshotData' \
121- -K ' kDartVmSnapshotInstructions' \
122- -K ' kDartCoreIsolateSnapshotData' \
123- -K ' kDartCoreIsolateSnapshotInstructions' \
124- -K ' _ZN4dart3bin26observatory_assets_archiveE' \
125- -K ' _ZN4dart3bin30observatory_assets_archive_lenE' \
126- -K ' _ZN4dart3bin7Builtin22_builtin_source_paths_E' \
127- -K ' _ZN4dart3bin7Builtin*_paths_E' \
128- -K ' _ZN4dart3binL17vm_snapshot_data_E' \
129- -K ' _ZN4dart3binL24isolate_snapshot_buffer_E' \
130- -K ' _ZN4dart3binL27core_isolate_snapshot_data_E' \
131- -K ' _ZN4dart3binL27observatory_assets_archive_E' \
132- -K ' _ZN4dart3binL27vm_isolate_snapshot_buffer_E' \
133- -K ' _ZN4dart3binL29core_isolate_snapshot_buffer_E' \
134- -K ' _ZN4dart7Version14snapshot_hash_E' \
135- -K ' _ZN4dart7Version4str_E' \
136- -K ' _ZN4dart7Version7commit_E' \
137- -K ' _ZN4dart9Bootstrap*_paths_E' out/ReleaseIA32/run_vm_tests
138- tar -czf linux-ia32.tar.gz \
139- --exclude .git \
140- --exclude .gitignore \
141- --exclude pkg/front_end/testcases \
142- -- \
143- out/ReleaseIA32/dart2js_platform.dill \
144- out/ReleaseIA32/vm_outline_strong.dill \
145- out/ReleaseIA32/vm_platform_strong.dill \
146- out/ReleaseIA32/gen/kernel_service.dill \
147- out/ReleaseIA32/dart-sdk \
148- out/ReleaseIA32/dart \
149- out/ReleaseIA32/gen_snapshot \
150- out/ReleaseIA32/kernel-service.dart.snapshot \
151- out/ReleaseIA32/run_vm_tests \
152- sdk \
153- pkg/compiler/test/codesize/swarm \
154- third_party/pkg \
155- .dart_tool/package_config.json \
156- pkg \
157- benchmarks \
158- || (rm -f linux-ia32.tar.gz; exit 1)
159- elif [ " $command " = linux-ia32-benchmark ]; then
160- rm -rf tmp
161- mkdir tmp
162- cd tmp
163- tar -xf ../linux-ia32.tar.gz
164- cat > hello.dart << EOF
165- main() {
166- print("Hello, World");
167- }
168- EOF
169- out/ReleaseIA32/dart --profile-period=10000 hello.dart
170- out/ReleaseIA32/dart pkg/front_end/tool/perf.dart parse hello.dart
171- out/ReleaseIA32/dart pkg/front_end/tool/perf.dart scan hello.dart
172- out/ReleaseIA32/dart pkg/front_end/tool/cfe_perf.dart kernel_gen_e2e hello.dart
173- out/ReleaseIA32/dart pkg/front_end/tool/cfe_perf.dart scan hello.dart
174- out/ReleaseIA32/run_vm_tests --dfe=out/ReleaseIA32/kernel-service.dart.snapshot InitialRSS
175- out/ReleaseIA32/run_vm_tests --dfe=out/ReleaseIA32/kernel-service.dart.snapshot KernelServiceCompileAll
176- out/ReleaseIA32/run_vm_tests --dfe=out/ReleaseIA32/kernel-service.dart.snapshot UseDartApi
177- out/ReleaseIA32/dart --profile-period=10000 benchmarks/Example/dart/Example.dart
178- out/ReleaseIA32/dart benchmarks/FfiAsTypedList/dart/FfiAsTypedList.dart
179- cd ..
180- rm -rf tmp
18171 elif [ " $command " = linux-x64-build ]; then
18272 # NOTE: These are duplicated in tools/bots/test_matrix.json, keep in sync.
18373 ./tools/build.py --mode=release --arch=x64 create_sdk runtime gen_snapshot dartaotruntime dart2js_platform.dill kernel-service.dart.snapshot ddc_stable_test ddc_canary_test dart2wasm_benchmark
0 commit comments