blob: 48d4cec5151adf75837021ebbf902a9f20d3c8c4 [file] [log] [blame]
#!/boot/bin/sh
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Example script for running a basic benchmark
#
# To run, just run the script directly from the terminal:
# /pkgfs/packages/scenic_benchmarks/0/bin/scenic_benchmark_example.sh
# or with fx:
# fx shell '/pkgfs/packages/scenic_benchmarks/0/bin/scenic_benchmark_example.sh'
#
killall scenic.cmx; killall basemgr; killall root_presenter.cmx; killall present_view; killall tiles; killall tiles.cmx
# Run benchmark
/pkgfs/packages/scenic_benchmarks/0/bin/run_scenic_benchmark.sh \
--out_file /data/bench \
--benchmark_label BasicLatencyBenchmark \
--sleep_before_trace 3 \
--flutter_app_names 'image_grid_flutter.cmx,spinning_cube.cmx' \
--cmd 'tiles_ctl start;
tiles_ctl add fuchsia-pkg://fuchsia.com/spinning_cube#meta/spinning_cube.cmx;
tiles_ctl add fuchsia-pkg://fuchsia.com/image_grid_flutter#meta/image_grid_flutter.cmx;'