aboutsummaryrefslogtreecommitdiff
path: root/pgo/partial.sh
blob: c16de324db22e4eff147d5fd12f999b8c8086fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -eux

srcdir=$(realpath "${1}")
blddir=$(realpath "${2}")

. "${srcdir}"/pgo/options

pgo_data=$(mktemp)
trap "rm -f ${pgo_data}" EXIT INT HUP TERM

rm -f "${blddir}"/pgo-ok

"${srcdir}"/scripts/generate-alt-random-writes.py \
           --rows=67 \
           --cols=135 \
           ${script_options} \
           "${pgo_data}"

# To ensure profiling data is generated in the build directory
cd "${blddir}"

"${blddir}"/footclient --version
"${blddir}"/foot --version
"${blddir}"/pgo "${pgo_data}"

touch "${blddir}"/pgo-ok