summaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/collect-cpu-stats.sh
blob: 44875b54ddc4d283029f5bfbad9b285bb5457439 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# Spawn a background process to collect CPU usage statistics which we'll upload
# at the end of the build. See the comments in the script here for more
# information.

set -euo pipefail
IFS=$'\n\t'

mkdir -p build
python3 src/ci/cpu-usage-over-time.py &> build/cpu-usage.csv &