about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-10-30 18:56:40 +0100
committerPietro Albini <pietro@pietroalbini.org>2019-11-12 11:06:11 +0100
commite209ee42e99cd76d7fefd0c53fbd84f0d2123935 (patch)
tree5a97c755ead3f91a01b9cd26642efa7ccb260ef5 /src/ci/scripts
parentd623c56f4c2eab00a9cb5ba12e9e708430945f1a (diff)
downloadrust-e209ee42e99cd76d7fefd0c53fbd84f0d2123935.tar.gz
rust-e209ee42e99cd76d7fefd0c53fbd84f0d2123935.zip
ci: extract collecting cpu stats into a script
Diffstat (limited to 'src/ci/scripts')
-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 00000000000..08065431f98
--- /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'
+
+python src/ci/cpu-usage-over-time.py &> cpu-usage.csv &