1#!/bin/bash
2
3root=""
4
5if [ "x$1" != "x" ]; then
6    root="$1"
7fi
8cd "$root/perfetto"
9GN_ARGS="is_debug=false use_custom_libcxx=false"
10tools/install-build-deps --ui
11tools/gn gen out/dist --args="${GN_ARGS}" --check
12tools/ninja -C out/dist traced traced_probes perfetto trace_to_text ui trace_processor_shell
13ui/run-dev-server out/dist/
14