summaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/collect-cpu-stats.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ci/scripts/collect-cpu-stats.sh')
-rwxr-xr-xsrc/ci/scripts/collect-cpu-stats.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ci/scripts/collect-cpu-stats.sh b/src/ci/scripts/collect-cpu-stats.sh
new file mode 100755
index 000000000..853b4628f
--- /dev/null
+++ b/src/ci/scripts/collect-cpu-stats.sh
@@ -0,0 +1,9 @@
+#!/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'
+
+python3 src/ci/cpu-usage-over-time.py &> cpu-usage.csv &