Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: extract collecting cpu stats into a script
- Loading branch information
1 parent
d623c56
commit e209ee4
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 & |